in reply to How do I rewrite this foreach() loop as a map{} ?
Erm, @c = map { [ @{ $hash{ $_ } } ] } sort { $a <=> $b } keys %hash?
Not to mention immediately taking a reference to a dereferenced array ref gives you the same arraryref.