in reply to I don't want to die
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]); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I don't want to die
by JadeNB (Chaplain) on Jul 29, 2009 at 23:29 UTC | |
|
Re: I don't want to die
by moodwrench (Initiate) on Jul 29, 2009 at 15:46 UTC | |
by ikegami (Patriarch) on Jul 29, 2009 at 16:14 UTC | |
by thunders (Priest) on Jul 29, 2009 at 17:47 UTC |