The stupid question is the question not asked | |
PerlMonks |
Re: sprintf vs. substr (for zero-padded values)by dada (Chaplain) |
on Jul 16, 2002 at 11:38 UTC ( [id://182045]=note: print w/replies, xml ) | Need Help?? |
if you're looking for speed (and you know $number is always less than 10 digits), why not do it this way:
cheers, Aldo
In Section
Seekers of Perl Wisdom
|
|