for my $x ( 1, 2, 11 ) { print 0 x (3-length($x)), $x, "\n"; } [download]
In reply to Re: displaying numbers like 001 by gam3 in thread displaying numbers like 001 by abc123