in reply to Perl dropping " at line xxx" from warnings when "\n" is present
If you look at the docs for die it says:
If the last element of LIST does not end in a newline, the current script line number and input line number (if any) are also printed, and a newline is supplied.
And warn says "Produces a message on STDERR just like "die", but doesn't exit or throw an exception." Granted that's not explicitly saying "warn will print the current script line number and input line number unless the message ends with a newline". You might submit a documentation patch to p5p adding something like "(see the documentation for C<die> for more details)."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl dropping " at line xxx" from warnings when "\n" is present
by bprew (Monk) on Dec 09, 2005 at 19:18 UTC |