in reply to Use LWP::Simple to download images from a website
You were right, there is. :) Use sprintf:> # this bit assumes the numbers of the files are zero > # padded to three zeroes... there is surely a better > # way to do this > my $f = substr("000".$i,-3,3);
By the way, you might want to take a look at Image::Grab. Give it a web page URL, it'll grab it, parse it and look for images, and grab the images.my $f = sprintf "%03d", $i;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Use LWP::Simple to download images from a website
by zeno (Friar) on Jan 17, 2001 at 15:35 UTC |