Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: duplicate keys on hash

by tune (Curate)
on Feb 11, 2015 at 11:42 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116324]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2026-02-10 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.