How do you populate the @filelist array? Are you using readdir?
foreach $file (sort by_last_mod @filelist) {push (@sorted,$file);} could more simply be written as: push @sorted, sort by_last_mod @filelist;.
In reply to Re: Sorted by date file not working?!
by jwkrahn
in thread Sorted by date file not working?!
by natol44
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |