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
Node Status?
node history
Node Type: note [id://1116324]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-07-20 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (438 votes). Check out past polls.

    Notices?