![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
(elbie): Interpreting values alternately as $trings and Integers = confused response by Perlby elbie (Curate) |
on Apr 14, 2002 at 20:07 UTC ( #158991=note: print w/replies, xml ) | Need Help?? |
Note that perl has two different kinds of comparison operators, one for strings (eq) and one for numerical values (==)
Minor point, but you should probably use $arr[0] == 12 to get a true numerical comparison. i.e. Drop the quotes. elbieelbieelbie
In Section
Seekers of Perl Wisdom
|
|