why don't you just get rid of length and use this
$num = sprintf("%06d", $num); # if only numbers $num = sprintf("%06s", $num); # if num and letters
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In reply to Re: Sub can't get $_ value?
by kutsu
in thread Sub can't get $_ value?
by DaWolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |