Where did you get this sprintf "%0${len}d", $number;The sprintf documentation, perhaps?
BTW: The thread you responded to is 7 years old.printf '<%06s>', 12; # prints "<000012>"
In reply to Re^3: front-pad a number with zero's
by andreas1234567
in thread front-pad a number with zero's
by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |