Perl Monk, Perl Meditation | |
PerlMonks |
Re: eq vs. ==by liz (Monsignor) |
on Jul 20, 2003 at 10:32 UTC ( [id://276023]=note: print w/replies, xml ) | Need Help?? |
Maybe this answers your question:
$val eq '2'
$val == '2'
$val == 2 If a string starts with a number, its numeric value will be that number. Consider the following examples: True because 0 == 0
Not true because 0 != 1
True because 0 == 0 Liz
In Section
Seekers of Perl Wisdom
|
|