in reply to stat : error handling
use warnings; use strict; my @stats = stat 'foo'; if (@stats) { print "OK\n"; } else { print "Error\n"; }
Also, use <blockquote> instead of quote.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: stat : error handling
by gepebril69 (Scribe) on Jan 03, 2013 at 13:51 UTC | |
by marto (Cardinal) on Jan 03, 2013 at 14:00 UTC |