Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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
Domain Nodelet?
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 chanting in the Monastery: (3)
As of 2022-01-24 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?