Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Object to Map Multiple Values to a Single Key

by RMGir (Prior)
on May 27, 2003 at 12:00 UTC ( [id://260968]=note: print w/replies, xml ) Need Help??


in reply to Object to Map Multiple Values to a Single Key

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.
--
Mike

  • Comment on Re: Object to Map Multiple Values to a Single Key

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://260968]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found