Do you know where your variables are? | |
PerlMonks |
Re: Multiple values per key in a hashby TOD (Friar) |
on May 13, 2008 at 10:09 UTC ( [id://686231]=note: print w/replies, xml ) | Need Help?? |
in principle you cannot assign multiple values to one key in a hashtable, because its a key -> value construct. but if the value is a reference, i.e. to a hashref, you can bypass this restriction. note that all values must be scalars or references, not arrays or hashtables.
-------------------------------- masses are the opiate for religion.
In Section
Seekers of Perl Wisdom
|
|