|
|
| XP is just a number | |
| PerlMonks |
Re: confused: string and number comparisonby wwe (Friar) |
| on Mar 23, 2011 at 15:07 UTC ( #895011=note: print w/ replies, xml ) | Need Help?? |
|
Thank you for your answers. As lostjimmy and moritz already told the problem could be solved easily by doing string comparison. I think my problem was that perl turns a string which doesn't represent a number to zero for numerical comparison as johnqq stated.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||