bprew has asked for the wisdom of the Perl Monks concerning the following question:
b3n@sdf:~> cat test.pl #!/usr/bin/perl warn "foo"; warn "bar\n"; b3n@sdf:~> perl test.pl foo at test.pl line 3. bar
This appears to be the same for both perl 5.6.0 (eww) and 5.8.7 (specifically perl, v5.8.7 built for alpha-netbsd-thread-multi)
Is this to allow for exception handling with objects or something similar? I'm assuming this is expected behaviour, but I didn't see any note of it in the warn() perldoc page.
I won't lose any sleep over it, but it did strike me as odd.
Thanks
Update: added perl version(s)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl dropping " at line xxx" from warnings when "\n" is present
by friedo (Prior) on Dec 09, 2005 at 19:07 UTC | |
|
Re: Perl dropping " at line xxx" from warnings when "\n" is present
by ww (Archbishop) on Dec 09, 2005 at 19:10 UTC | |
|
Re: Perl dropping " at line xxx" from warnings when "\n" is present
by ikegami (Patriarch) on Dec 09, 2005 at 19:09 UTC | |
|
Re: Perl dropping " at line xxx" from warnings when "\n" is present
by Fletch (Bishop) on Dec 09, 2005 at 19:12 UTC | |
by bprew (Monk) on Dec 09, 2005 at 19:18 UTC |