Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Is There A Better Way?by simeon2000 (Monk) |
on Aug 13, 2002 at 15:12 UTC ( [id://189821]=note: print w/replies, xml ) | Need Help?? |
sprintf is great for formatting numbers. $input = sprintf("%011d", $input); That oughtta do the trick. --
In Section
Seekers of Perl Wisdom
|
|