If you want to strip leading zeroes:my ($s1, $s2) = qw(20055 020055); print(($s1 == $s2) ? "equal\n" : "not equal\n");
s/^0*//;
In reply to Re: Regex and leading zeros in numbers
by Roy Johnson
in thread Regex and leading zeros in numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |