my %sorted_msgs; for (@lines) { my $key = obtain key here; my $value = [ value array items here ]; push @{$sorted_msgs{$key}}, $value; }
In reply to Re: Using map to convert an array into a hash of array of arrays
by moritz
in thread Using map to convert an array into a hash of array of arrays
by rjoost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |