So your tests could be rewritten as:
if (111111 > 222222){ print "yes\n" } else { print "no\n" } # prints 'no' if (111111 > 74898){ print "yes\n" } else { print "no\n" } # prints "yes"; if (111111 > '0222222'){ print "yes\n" } else { print "no\n" } # prints "no"; if (111 > 146){ print "yes\n" } else { print "no\n" } # prints "no";
NB: Thanks to the Programmer's Cheat Sheet for the conversions.
In reply to Re: When is 111111 greater than 0222222?
by The Mad Hatter
in thread When is 111111 greater than 0222222?
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |