Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: duplicate keys on hash

by tune (Curate)
on Feb 11, 2015 at 11:42 UTC ( #1116324=note: print w/replies, xml ) Need Help??


in reply to duplicate keys on hash

I would assign an arrayref to the hash key. Eg.
use Data::Dumper; my %hash = ( 2 => ['BBB', 'EEE'], ); print Dumper \%hash;
Is that what you are looking for?

--
tune

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2020-10-01 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (176 votes). Check out past polls.

    Notices?