but it's rather a moot point - the Schwartzian Transform goes a step further and eliminates the hash.@files = grep { -f } glob '* .*'; @hash{ (map { (-s $_) . ".$_"} @files) } = @files; @files = @hash{ sort { $a <=> $b } keys %hash }; print map {$_,$/} @files;
In reply to Re^3: Sorting based on filesize.
by keszler
in thread Sorting based on filesize.
by heigold1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |