Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Downloading and saving images.

by b10m (Vicar)
on Sep 07, 2006 at 07:19 UTC ( #571625=note: print w/replies, xml ) Need Help??


in reply to Downloading and saving images.

While "the right answer" has already been given, you also might consider switching to LWP::Simple, for it makes your code a whole lot shorter ;)

use strict; use LWP::Simple qw/getstore/; getstore("url_to_some_picture.jpg", "file_path_name");
--
b10m

All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://571625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-12-06 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?