We don't bite newbies here... much | |
PerlMonks |
Re: formatting zipcodesby Kanji (Parson) |
on Apr 14, 2002 at 22:14 UTC ( [id://159026]=note: print w/replies, xml ) | Need Help?? |
See (s)printf, which can be coerced into right-padding with zeros (instead of spaces) if the string is shorter than a desired length... my $zip = sprintf "%05d", 9876; --k.
In Section
Seekers of Perl Wisdom
|
|