No such thing as a small change | |
PerlMonks |
Re: multiple array as hash value per keyby davorg (Chancellor) |
on Jul 02, 2009 at 05:51 UTC ( [id://776640]=note: print w/replies, xml ) | Need Help?? |
The values in a hash can be any kind of scalar. To get the results that you want, each value would need to be a reference to an array, and each element in the referenced arrays would need to be another array reference.
Note the I've corrected your hash-creating brackets from {} to (). For more details see perldsc.
In Section
Seekers of Perl Wisdom
|
|