Minor point, but you should probably use $arr[0] == 12 to get a true numerical comparison. i.e. Drop the quotes.
elbieelbieelbie
In reply to (elbie): Interpreting values alternately as $trings and Integers = confused response by Perl
by elbie
in thread Interpreting values alternately as $trings and Integers = confused response by Perl
by jerrygarciuh
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |