On Sunday 12 March 2006 18:22, Shawn Corey wrote: > Believe it or not, write the number as a string. > for ( '000' .. '100' ){ > print "$_\n"; > } Note that if you have a string such as "000", you can treat it like a number: my $a = '000'; $a++; print "$a\n";
This will print '001'. To have it go to 4 digits, well, that's as easy as you might expect: my $a = '999'; $a++; print "$a\n"; This will print '1000'. -- Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]> Hostes alienigeni me abduxerunt. Qui annus est? PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
pgpAqvea8N7wf.pgp
Description: PGP signature