in reply to Interpreting values alternately as $trings and Integers = confused response by Perl
} elsif ($ary[0] = '12') { and found that $ary[0] was being assigned a value of 12.
As you can see, = is not a relational operator that test equality. What is it then? It's the assignment operator.Relational operators String Number Equal eq == Not equal ne != Greater gt > Greater or equal ge >= Less lt < Less or equal le <= Compare cmp <=>
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
---|