Note: the 1; is added to ensure the eval returns true on success.while (defined (my $file = readdir($DH))) { my $cretime; eval {$cretime=stat("$SPOOL/$file")->ctime; 1;} or next; push(@files, [$cretime,$file]); }
In reply to Re: I don't want to die
by SuicideJunkie
in thread I don't want to die
by moodwrench
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |