Update : Modified this based on extremely's advice.
$Start = substr(++($Start="z$Start"),1);
This is the key.
#!/usr/bin/perl -w #-*-perl-*- use strict; use LWP::Simple; my $Pre = $ARGV[0]; # the URL up to num FIXED my $Post = $ARGV[1]; # the URL after num FIXED my $Start = $ARGV[2]; # starting num INC my $Max = $ARGV[3]; # ending num (by request) until ( $Start > $Max ) { # starting num until ending num my $Url = "$Pre$Start$Post"; getstore ( $Url, "$Start$Post" ); # below is where the magic happens $Start = substr(++($Start="z$Start"),1); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(GOLF)Re: Leading Zeros w/ increment
by extremely (Priest) on Apr 05, 2001 at 03:28 UTC | |
by idnopheq (Chaplain) on Apr 05, 2001 at 22:50 UTC | |
by extremely (Priest) on Apr 05, 2001 at 23:12 UTC | |
by idnopheq (Chaplain) on Apr 06, 2001 at 21:57 UTC |