in reply to Pulling an image

The easiest is probably to do:

use LWP::Simple; getstore ' http://perlmonks.org/images/monasterygatestitle2.jpg', 'monasterygatestitle2.jpg ';

And you can do perldoc lwpcook for more info

Replies are listed 'Best First'.
Re: Re: Pulling an image
by merlyn (Sage) on Dec 03, 2000 at 21:30 UTC
    Rather than using getstore, if you're always gonna be dropping it into the same file, use mirror (same syntax). This permits the webserver to reply with a "304 error" and no data transfer if you've already got the most up-to-date version of the file, and also sets the modtime of the file to the "last-modified" header so you have a clue as to the document's age.

    -- Randal L. Schwartz, Perl hacker