Perl Monk, Perl Meditation | |
PerlMonks |
Re: Object to Map Multiple Values to a Single Keyby RMGir (Prior) |
on May 27, 2003 at 12:00 UTC ( [id://260968]=note: print w/replies, xml ) | Need Help?? |
Interesting... I think it might be clearer to just use the HoA directly, but that's another "TMTOWTDI"...
I'm fairly certain you don't need the "unless (exists..." in put. Using "push @{$self->{$key}},$value" will auto-vivify $self->{$key} as an array ref if necessary.
In Section
Meditations
|
|