New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s [foo] \n [bar] confuses line numbers #16119
Comments
From @AbigailCreated by @AbigailConsider the following program: #!/opt/perl/bin/perl use 5.010; say "This is line " . __LINE__; say "This is line " . __LINE__; __END__ This prints, as expected: This is line 5 Now watch what happens if we move the replacement part of s/// #!/opt/perl/bin/perl use 5.010; say "This is line " . __LINE__; __END__ Now it gets the second line number wrong: This is line 5 This also effects line numbers of errors and warnings. Note that if the replacement part (or the pattern) contain a newline, Perl Info
|
From @cpansproutOn Sat, 19 Aug 2017 14:40:25 -0700, abigail@abigail.be wrote:
perl5.24.2 is fine, so it was introduced some time between 5.24.0 and 5.26.0. -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Sat, 19 Aug 2017 14:40:25 -0700, abigail@abigail.be wrote:
The second set does not need to use matching delimiters: $ perl5.27.1 -le 's<foo>' -e' /bar/;' -e' print __LINE__' -- Father Chrysostomos |
From @iabynOn Sat, Aug 19, 2017 at 06:40:24PM -0700, Father Chrysostomos via RT wrote:
It bisects to this. I'll have a further look sometime. 6432a58 is the first bad commit Eliminate SVrepl_EVAL and SvEVALED() -- |
From @iabynOn Mon, Sep 11, 2017 at 08:05:59AM +0100, Dave Mitchell wrote:
Now fixed with v5.27.9-124-g823ba44 -- |
@iabyn - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been Perl 5.28.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#131930 (status was 'resolved')
Searchable as RT131930$
The text was updated successfully, but these errors were encountered: