go ahead... be a heretic | |
PerlMonks |
Re: Trouble accessing Hash of Arrays (troubleshooting basics)by Anonymous Monk |
on Apr 02, 2013 at 02:36 UTC ( [id://1026569]=note: print w/replies, xml ) | Need Help?? |
Basic debugging checklist says use strict; use warnings; especially if you want to cut your development time in half! It will point you at problems with your code, like this
@array in scalar context returns its size , perlintro, Tutorials: Context tutorial To store an array in a scalar, to store an array in a hash, you have to use the reference operator, reference-of operator, see perlreftut#Making References , references quick reference
In Section
Seekers of Perl Wisdom
|
|