Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Downloading using Perl

Status
Not open for further replies.

justme77

Technical User
Feb 4, 2001
19
0
0
SG
Hi all,
I would like to automate downloading of files form the using perl. I can live with entering URL and path for the file to be downloaded from the internet. Any ideas? Is there any Perl modules that I can use?
Thank you for answering. cheers,
Just Me!!
 
If you are trying to retreive web pages, use LWP. If you are trying to retreive files from an ftp server, use NET::FTP.

Example of LWP::SIMPLE,
#!/usr/local/bin/perl
use LWP::SIMPLE;
$page = get("
It has been a while since I played with NET::FTP. I'll leave it for you to check out the docs on CPAN, or someone else may chime in.

HTH,
Good Luck


keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top