perldoc -f sprintf $zip = sprintf("%05d", $zip);
> -----Original Message----- > From: Michael Gargiullo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 1:16 PM > To: Beginners > Subject: Keeping places with numbers > > > I have a loop that starts at 0 and goes to 99999 and sets the > variable $zip > to the current number > > I need it to always be 5 places like a zip code, like so > > 00000 > 00001 > etc... > > How can I do that? > > -Mike > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]