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