Perl: the Markov chain saw | |
PerlMonks |
Re^3: Convert string to hashby AppleFritter (Vicar) |
on Mar 27, 2017 at 17:41 UTC ( [id://1186104]=note: print w/replies, xml ) | Need Help?? |
Individual hash (and array) elements must be scalars. In order to store a more complex data structure, you have to store a reference — which is what $value already is. So assuming that this is what you want to do, and assuming %temp was previously declared as a hash,
should do the trick.
In Section
Seekers of Perl Wisdom
|
|