in reply to •Re: Keeping only the $n newest files/directories in a diretory?
in thread Keeping only the $n newest files/directories in a diretory?
I think this code is golfing at its best ;). It works but I don't understand it...
Could someone please explain the following part of merlyn's code:
my @newest_first = map $_->[0], sort { $a->[1] <=> $b->[1] } map [$_, -M], </var/script/proc/*>;
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: •Re: Keeping only the $n newest files/directories in a diretory?
by halley (Prior) on Apr 19, 2003 at 12:33 UTC | |
by Juerd (Abbot) on Apr 19, 2003 at 13:11 UTC | |
|
Re: Re: •Re: Keeping only the $n newest files/directories in a diretory?
by Improv (Pilgrim) on Apr 19, 2003 at 12:34 UTC | |
|
Re: Re: •Re: Keeping only the $n newest files/directories in a diretory?
by Chady (Priest) on Apr 19, 2003 at 12:39 UTC |