in reply to Populating an array reference in a hash with with a regex
the obvious disadvantage is that every hash entry is an array reference, but shouldn't matter.push @{ $hash{$_->[0]} }, $_->[1] foreach (map {[split /=/]} split (/& +/, $string));
|
|---|