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
In reply to Re: stat : error handling
by johngg
in thread stat : error handling
by gepebril69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |