in reply to
formatting integers for printing
my $your_int = 3;
printf ("%2d", $your_int);
#
# or if you want to make a string with 03;
#
my $string_03 = sprint ("%2d", $your_int);
Comment on
Re: formatting integers for printing
In Section
Seekers of Perl Wisdom