Perl-Sensitive Sunglasses | |
PerlMonks |
Re: accessing data structureby jbert (Priest) |
on Nov 16, 2007 at 13:42 UTC ( [id://651197]=note: print w/replies, xml ) | Need Help?? |
As well as reading up on references, please make your code run under use strict; and use warnings;.
This would have been useful in this case because you would have got the warning: which would have given you a hint that you had messed up, writing @{results} instead of @{$results} (or just @$results). strict and warnings are really useful and save a lot of time for you and for people answering questions, too.
In Section
Seekers of Perl Wisdom
|
|