perldoc -q pad points out the sprintf function:
my $padded = sprintf "%03s", $number;
In reply to Re: help needed in printing the numbers
by Corion
in thread help needed in printing the numbers
by singam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |