There's more than one way to do things | |
PerlMonks |
Re: How to create multiple keys in a hashby bl0rf (Pilgrim) |
on Sep 21, 2003 at 00:31 UTC ( [id://292932]=note: print w/replies, xml ) | Need Help?? |
I'm not exactly sure what you want to do with the modified hash implementation but you answered your own question by using split() in your example code :-)
Simply use a separated string as your key and iterate
This code is tested ( ActivePerl 5.6.0 ) and produces this output:
subkey-> Canada subvalue-> beaver
subkey-> first subvalue-> bob
I've got a feeling that you might accomplish your
In Section
Seekers of Perl Wisdom
|
|