in reply to Re: Interpreting values alternately as $trings and Integers = confused response by Perl
in thread Interpreting values alternately as $trings and Integers = confused response by Perl
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (elbie): Interpreting values alternately as $trings and Integers = confused response by Perl
by premchai21 (Curate) on Apr 15, 2002 at 01:09 UTC |
In Section
Seekers of Perl Wisdom