http://www.perlmonks.org?node_id=82867

ip9 has asked for the wisdom of the Perl Monks concerning the following question: (http and ftp clients)

I have used the LWP library to download HTML files for parsing, but at the end of the program i wish to be able to download a file (extraced from the html file i parsed) and save it to a local file

i am currently using wget to do this, can i do it from within my program to make things neater?

p.s. i know what the url and local file will be - just need to somehow place the downloaed file on the local disk

Originally posted as a Categorized Question.

  • Comment on how do i download a file and save it locally

Replies are listed 'Best First'.
Re: how do i download a file and save it locally
by zigster (Hermit) on May 24, 2001 at 17:22 UTC
    Yes you can do this look a LWP::Simple Specifically the getstore method