Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: hash to textby Velaki (Chaplain) |
on Aug 14, 2004 at 22:02 UTC ( [id://383020]=note: print w/replies, xml ) | Need Help?? |
Let's look at your code with some hand calculations thrown in for fun.
If you look at the data above, you'll see that you're dereferencing the structure twice. Well, when looking at the zeroeth element, you'll notice that your print statement above gives a reference to an array, specifically [1,3]. To print it, you will need to deref it one more time.
When in doubt, walk through your data by hand; use Data::Dumper; inspect things. Hope this helps, -v
"Perl. There is no substitute."
In Section
Seekers of Perl Wisdom
|
|