in reply to File list by date
I tested it and it works under linux. Would be neater without the OS-checking, though.use SuperSplit; if ( $^O =~ /linux/){ $dir = `ls -l`; $col = 4; }else{ #sorry, no macs ;-) $dir = `dir -w`; $col = 2; } @$sortedref = sort{ $a->[$col] <=> $b->[$col] } @{supersplit('\s+','\n',$dir)}; print superjoin( $sortedref );
Have fun with it
Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File list by date
by snax (Hermit) on Dec 21, 2000 at 20:56 UTC | |
by dkaplowitz (Novice) on Mar 19, 2004 at 17:00 UTC |