Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!melba.bby.oz.au!gnb From: gnb@bby.oz.au (Gregory N. Bond) Newsgroups: comp.lang.perl Subject: Re: BUG in interpolating and/or substituting NULs in strings? Message-ID: Date: 22 May 91 08:16:34 GMT References: <589@kepler1.kepler.com> Sender: usenet@melba.bby.oz.au (news READER id) Followup-To: comp.lang.perl Organization: Burdett, Buckeridge and Young Ltd. Lines: 25 Nntp-Posting-Host: leo-gw >>>>> On 21 May 91 16:51:50 GMT, jwu@kepler.com (Jasper Wu) said: Jasper> Greg, from perl manpage on s///: Jasper> ...If the PATTERN evaluates to a null string, the most recent Jasper> successful regular expression is used instead.... Well, I would have thought that $var = ""; is a null string, but that $var = "\0"; is a non-null string with a single nul character. So I would still class it as a bug. But I understand the work-around. Greg. -- Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia Internet: gnb@melba.bby.oz.au non-MX: gnb%melba.bby.oz@uunet.uu.net Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb