The stupid question is the question not asked | |
PerlMonks |
Re: zero paddingby RazorbladeBidet (Friar) |
on Feb 09, 2005 at 19:27 UTC ( [id://429481]=note: print w/replies, xml ) | Need Help?? |
When you concat, you need to $var1.sprintf( "%04d", $var2 ); or $var1.("0" x (4-length( $var2 ))).$var2
In Section
Seekers of Perl Wisdom
|
|