in reply to Downloading html content
I expect that the code may work without use HTTP::Request::Common;. Not sure, you will have to try that out if you wish to know.#!/usr/bin/perl use warnings; use strict; use LWP::UserAgent; use HTTP::Request::Common; my @web_addresses = ("http://www.web1.com/page", "http://www.web2.co.uk/page.htm"); my $count = 0; foreach (@web_addresses) { $count++; my $ua = LWP::UserAgent->new; $ua->get("$_", ':content_file' => "$count"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Downloading html content
by pupun (Initiate) on Jan 03, 2008 at 09:37 UTC | |
by Jenda (Abbot) on Jan 04, 2008 at 01:43 UTC | |
|