opendir(DIR,$somedir) or die; @files=reverse sort {(stat($a))[9] <=> (stat($b))[9]} grep(!/^\./ && -f "$somedir/$_" ,readdir(DIR)); ( $#files > 4 ) && { @files=@files[0..4] }; closedir(DIR);
In reply to Re: Reading
by kschwab
in thread Reading from ls-lrt (was: Reading)
by azatoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |