develooper Front page | perl.perl5.porters | Postings from August 2000

Re: [ID 20000804.003] heredoc in s///e replacement

Thread Previous | Thread Next
From:
Mike Guy
Date:
August 4, 2000 08:49
Subject:
Re: [ID 20000804.003] heredoc in s///e replacement
Message ID:
E13Kjid-0000uG-00@libra.cus.cam.ac.uk
iHugo <hv@crypt.compulink.co.uk> wrote
> The following code gives the same results with all perls I've checked
> after 5.004 up to and including bleadperl (it fails to find the end of
> the heredoc in 5.004 and earlier):

I agree with Ronald that I see no bug here.     But this area is clearly
full of possibilities

$ ./perl -wl
$_ = 'test';
s/t/<<E . 'fgh'
dddd
eeee
E
. 'ijk'/eg;
print;
__END__
^D
Can't find string terminator "E" anywhere before EOF at - line 2.
$

Note that the CTRL/D was needed  -  the __END__ wasn't seen.


Mike Guy

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About