[LUNI] Help with a perl comparison...

Joel F. Hacker hacker at cig.mot.com
Fri Mar 22 00:14:01 CST 2002


Anyone know how to make this little comparison become true?

Thanks!

Joel

#!/usr/local/bin/perl

my $one = 50;
my $two = 0000050;

if ($one == $two) {print "it works";}
else {print "its broken";}


It always trips up on the leading zeros
and prints out "its broken".







More information about the luni mailing list