Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Simple array questionby davido (Cardinal) |
on Dec 22, 2003 at 17:21 UTC ( [id://316421]=note: print w/replies, xml ) | Need Help?? |
Evaluating an array in scalar context will tell you how many elements the array contains. length is not the right tool for the job.
It's an easy (and common) mistake to make.
Dave
In Section
Seekers of Perl Wisdom
|
|