-----Original Message-----
From: Andrej Kastrin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 9:09 AM
To: beginners@perl.org
Subject: Equal length numbers

Hi all,

Suppose that we have numbers 1 to 1000 and we want all numbers be equal
length; e.g.:
0001
0002
0003
...
..
1000

Any idea on how to fix this problem?

Best, Andrej




Perldoc -f sprintf

HTH

richf

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to