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]); }
In reply to I don't want to die by moodwrench
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |