use warnings; use strict; my @stats = stat 'foo'; if (@stats) { print "OK\n"; } else { print "Error\n"; }
Also, use <blockquote> instead of quote.
In reply to Re: stat : error handling
by toolic
in thread stat : error handling
by gepebril69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |