...of course this sorts by Last Modified date, so far as I know there isn't a way to sort by actual file creation date.opendir(FILES,"$SAVE_DIRECTORY"); @allfiles = sort { (stat $a)[9] <=> (stat $b)[9] } (grep(!/^\.\.?$/,re +addir(FILES))); closedir(FILES); foreach $file (@allfiles) { print "$file " . (stat $file)[9] . "\n"; } exit;
In reply to Re: need helping sorting
by Hot Pastrami
in thread need helping sorting
by anthracite98
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |