in reply to stat : error handling
The o/s error is recorded in $!.
$ perl -E ' > @stats = stat q{notThere} or die $!;' No such file or directory at -e line 2. $
Cheers,
JohnGG
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: stat : error handling
by gepebril69 (Scribe) on Jan 03, 2013 at 14:08 UTC | |
by Athanasius (Archbishop) on Jan 03, 2013 at 14:20 UTC | |
by johngg (Canon) on Jan 03, 2013 at 16:05 UTC |
In Section
Seekers of Perl Wisdom