Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Number Padding

by ihb (Deacon)
on May 27, 2005 at 18:27 UTC ( [id://461189] : note . print w/replies, xml ) Need Help??

in reply to Re: Number Padding
in thread Number Padding

Don't forget the star syntax:

sprintf '%0*d', $len, $value;


See perltoc if you don't know which perldoc to read!