moodwrench has asked for the wisdom of the Perl Monks concerning the following question:
This works fine unless file is removed before that stat is reached. When that happens, I get the following:while (defined (my $file = readdir($DH))) { my $cretime=stat("$SPOOL/$file")->ctime or next; push(@files, [$cretime,$file]); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I don't want to die
by ikegami (Patriarch) on Jul 29, 2009 at 15:38 UTC | |
|
Re: I don't want to die
by moritz (Cardinal) on Jul 29, 2009 at 15:36 UTC | |
|
Re: I don't want to die
by SuicideJunkie (Vicar) on Jul 29, 2009 at 15:41 UTC | |
by JadeNB (Chaplain) on Jul 29, 2009 at 23:29 UTC | |
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 |