in reply to stat : error handling
Try something like this:
use warnings; use strict; my @stats = stat 'foo'; if (@stats) { print "OK\n"; } else { print "Error\n"; }
Also, use <blockquote> instead of quote.
In Section
Seekers of Perl Wisdom