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

[perl #131930] s [foo] \n [bar] confuses line numbers

Thread Next
Father Chrysostomos via RT
August 20, 2017 01:42
[perl #131930] s [foo] \n [bar] confuses line numbers
Message ID:
On Sat, 19 Aug 2017 14:40:25 -0700, wrote:
It's when the pattern and replacement each
> use matching braces, and there's a newline between the two sets that
> we get this error.

The second set does not need to use matching delimiters:

$ perl5.27.1 -le 's<foo>' -e' /bar/;' -e' print __LINE__'


Father Chrysostomos

via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About