Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How do i save an image with www::mechanize

by wilsond (Scribe)
on Jan 20, 2009 at 08:20 UTC ( [id://737508]=note: print w/replies, xml ) Need Help??


in reply to Re: How do i save an image with www::mechanize
in thread How do i save an image with www::mechanize

# after you get the URL (like [jonnyfolk] shows above) use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $res = $ua->mirror($imageurl, $localfilename);

If you want to do evil, science provides the most powerful weapons to do evil; but equally, if you want to do good, science puts into your hands the most powerful tools to do so.
- Richard Dawkins

Replies are listed 'Best First'.
Re^3: How do i save an image with www::mechanize
by Anonymous Monk on Jan 20, 2009 at 08:50 UTC
    Why wouldn't you just use the mechanize object?

      I don't use WWW::Mechanize and don't really know it well. My way is just one more way to do it, though I admit probably not the best way.


      While I ask a lot of Win32 questions, I hate Windows with a passion. That's the problem with writing a cross-platform program. I'm a Linux user myself. I wish more people were.
      If you want to do evil, science provides the most powerful weapons to do evil; but equally, if you want to do good, science puts into your hands the most powerful tools to do so.
      - Richard Dawkins

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-23 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found