OO10 is an octal number equal to 8 (decimal) therefore $y = 8 not 10.
This may help explain
perl -E 'say 0010,",","0010";' >8,0010
In reply to Re: removing leading 0's
by RichardK
in thread removing leading 0's
by CSharma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |