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!

LWP::Simple and Array of URLS

Status
Not open for further replies.

torstens

Technical User
Oct 9, 2006
26
US
I was wondering about how one could use the get command on an array of URLs via LWP::Simple. I'm just filtering the code so it doesn't matter if all the source from all of the URLS is dumped into one scalar variable.

essentially, how can I make this work...


@array = (' ' '
my $URLtest = get("@array");

print "$URLtest\n";
 
one way:

Code:
@array = ('[URL unfurl="true"]http://www.blah1.com',[/URL] '[URL unfurl="true"]http://www.blah2.com',[/URL] '[URL unfurl="true"]http://www.blah3.com')[/URL]

my $urltest = '';
foreach my $url (@array);
   $urltext .= get($url);
}
print $urltest;


- Kevin, perl coder unexceptional!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top