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

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

Thread Next
From:
Father Chrysostomos via RT
Date:
August 20, 2017 01:42
Subject:
[perl #131930] s [foo] \n [bar] confuses line numbers
Message ID:
rt-4.0.24-31096-1503193321-1775.131930-15-0@perl.org
On Sat, 19 Aug 2017 14:40:25 -0700, abigail@abigail.be 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__'
2

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=131930

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