in reply to Mind Bending Arrays
@sorted = sort {$a[1] <=> $b[1]} @array; # use {$b[1] <=> $a[1]} for a reversed sort # or {$a[0] cmp $b[0]} to sort by filenames
Sorting the hash is a little trickier but look around on the site for Schwartzian Transform. =)
--
$you = new YOU;
honk() if $you->love(perl)
|
|---|