We don't bite newbies here... much | |
PerlMonks |
Re: sprintf formatting doubtby matija (Priest) |
on Feb 11, 2005 at 08:10 UTC ( [id://430014]=note: print w/replies, xml ) | Need Help?? |
You could just use the standard printf sintax, and write
sprintf "%0*d",$dig,$inc;
Here is an example:
In Section
Seekers of Perl Wisdom
|
|