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.
In reply to Re: How do I rewrite this foreach() loop as a map{} ?
by Fletch
in thread How do I rewrite this foreach() loop as a map{} ?
by northwind
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |