dmckee has asked for the wisdom of the Perl Monks concerning the following question:
produce different output. Line one merely prints the standard error ('No such file or directory') whilst Line two prints the full "No such file or directory at C:\WIN98\DESKTOP\TEST.PL line 2."open FH, "<filedoesnotexist" or warn "$!\n"; open FH, "<filedoesnotexist" or warn "$!";
Is this a undocumented feature (I looked at warn and die in perlfunc as well as $! in perlvar. Oh, and it's windows, so YMMV.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: \n characters in warn and die
by tye (Sage) on Mar 01, 2001 at 00:03 UTC | |
by dmckee (Scribe) on Mar 01, 2001 at 00:27 UTC |