in reply to formatting zipcodes
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: formatting zipcodes
by mumphis (Initiate) on Apr 14, 2002 at 22:30 UTC | |
by tomazos (Deacon) on Apr 15, 2002 at 00:01 UTC | |
by DamnDirtyApe (Curate) on Apr 15, 2002 at 04:15 UTC | |
by badblk (Monk) on Apr 15, 2002 at 11:53 UTC |