good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Compare all array values without a loopby ihb (Deacon) |
on Oct 20, 2004 at 00:21 UTC ( [id://400714]=note: print w/replies, xml ) | Need Help?? |
Assuming that $foobar isn't undefined you should have a definedness check for the return value of first too. $foobar may be 0 or "". If undef is allowed as comparision value, use instead. ihb
See perltoc if you don't know which perldoc to read!
In Section
Seekers of Perl Wisdom
|
|