in reply to Re^4: slicing array based on values but not index
in thread slicing array based on values but not index
It can also be written as:
push @{ $res{$_->[2]} }, $_ for @arr;
Some people are finicky about map in void context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: slicing array based on values but not index
by Bloodnok (Vicar) on Aug 14, 2009 at 11:45 UTC |