Syntactic Confectionery Delight | |
PerlMonks |
Re^2: duplicate keys on hashby Happy-the-monk (Canon) |
on Feb 11, 2015 at 13:21 UTC ( [id://1116329]=note: print w/replies, xml ) | Need Help?? |
While replying to above Anonymonk I am actually clarifying to OP
The possibly missing information is the syntax used above to treat the hash value - spelled out $hash{$key} - as if it were a plain array is to put it inside this thingy @{ ... } instead of the dots. You have been shown that it gets into the hash value with the simple push function. Getting stuff out works the same way:
Cheers, Sören Créateur des bugs mobiles - let loose once, run everywhere.
In Section
Seekers of Perl Wisdom
|
|