-
Notifications
You must be signed in to change notification settings - Fork 555
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
error line number reported wrong when using here documents #226
Comments
From @jhiThe following behavior is arguably both wrong and right, I'm for the In here-documents an error (I think whichever error, that is of no The following example works only for _5X which have the utf8 pragma, The code: $x = <<EOF; and the result: ./perl -Ilib -Mutf8 -w X Perl Info
|
From adam@maia.netsonic.netCreated by adam@netsonic.netAfter upgrade, a reference in a script for a html footer such as this <small><small>E-mail: worked flawlessly in perl 5.0004 after upgrade, it was required to have <small><small>E-mail: Now the error reported as when run from command line: In string, @buscout now must be written as \@buscout at ./test.cgi line 13, near "@buscout" yet this line is nowhere near line 13 but at line 87 line 13 is Dont know if there is a backward compat issue here or an oversight.. thanks for all your efforts. Perl Info
|
From [Unknown Contact. See original ticket]On Apr 18, Adam Simpson said:
Your quoted string starts at line 13. Take this as another example of #!/usr/bin/perl -w Name "main::foo" used only once: possible typo at - line 4. While Perl knows $foo and $bar are mentioned explicitly on lines 4 and 5, |
From [Unknown Contact. See original ticket]On Apr 18, Jeff Pinyan said:
As O::Deparse shows me: jeffp@friday [12:54pm] ~ #436> perl -MO=Deparse |
From [Unknown Contact. See original ticket]Jeff Pinyan writes:
Diagnostic messages read the Resetting it more often would slow things down, keeping the Hope this helps, |
From [Unknown Contact. See original ticket]Ilya Zakharevich <ilya@math.ohio-state.edu> writes: If the diagnostic also has access to the current opcode structure, "on or after line " . ($n+7) . " in the statement starting on line $n" "on line " . ($n+OFFSET) . " in the statement starting on line $n" And a value of 0 would issue: "on line $n" Since statements are usually very short (usually one line), this |
From @schwernThis bug is not specific to here-docs but to any string. [~] perl -w |
From @schwern
Ignore that comment. |
From p5p@spam.wizbit.beWon't be fixed. Relevant p5p messages: Comments:
Won't fix. The string (or heredoc) is seen as one token.
Won't fix. Only control ops store file names and line numbers, not |
p5p@spam.wizbit.be - Status changed from 'open' to 'rejected' |
Relates: Perl#226 When testing Devel-Peek we can run some tests inside an eval and do not bother to check if it succeeds or not. As STDERR is redirected to a file, we do not even notice the error message when this occurs. This commit postpone the redirection of STDERR and die if the eval quoted string from `do_test` fails.
Migrated from rt.perl.org#1034 (status was 'rejected')
Searchable as RT1034$
The text was updated successfully, but these errors were encountered: