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
Erroneous line numbers reported with '#line' in 'eval' #4360
Comments
From @mjdominus perl -le 'eval "#line 12 xyz\n1/0;"; print $@' This is correct. perl -le 'eval "#line 12 xyz\n1/0"; print $@' This wrong. It should report the error at line 12, not at perl -le 'eval "#line 12 xyz\n1/0\n\n\n\n"; print $@' This is wronger. perl -le 'eval "#line 12 xyz\n1/0\n\n\n\n;"; print $@' Still wrong. Perl Info
|
From @schwernThat's odd. I get 16 for this one. Not that it's any less wrong. |
From @mjdominusMe too. I must have made a paste error. |
From @tamias
This issue is independent of eval: perl -le '#line 12 xyz' -e '1/0' -e '' -e '' -e '' -e '' Apparently perl reports the error occuring on the line where the statement (Tested with 5.005_03.) Ronald |
From [Unknown Contact. See original ticket]We have a look-ahead grammar - unless one tags the tokens that start the |
From @mjdominusNot worth fixing, in my opinion. |
@mjdominus - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#7600 (status was 'rejected')
Searchable as RT7600$
The text was updated successfully, but these errors were encountered: