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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

download file from http server

Status
Not open for further replies.

northernbloke

Programmer
Aug 9, 2000
29
0
0
GB
I am looking after our intranet. One of the sections is about virus alerts.

I am wanting to write a perl script that can download a text file from the following address:


The script will need to be run outside the browser (via launchpad). Is there a simple module to help or am I missing the point.

Cheers for any thoughts.
 
The LWP module is what you want.
Code:
use LWP::Simple;
$content = get("[URL unfurl="true"]http://www.sophos.com/virusinfo/infofeed/topten.txt");[/URL]
 
Thanks,

That is so easy to use, Why couldnt I find it ?

Many humble rumblings..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top