in reply to Loading A Site Into An Array
<xmp> #!/usr/local/bin/perl use LWP::Simple; open (IN, "sorturls"); @urls = <IN>; foreach $url (@urls){ chop($url); $doc = get "$url"; push (@downloaded_pages, $doc); }; close(IN); </xmp>
Your question is a little unclear, though. Do you want the whole page to into a single element of an array> 'Cause, that's what the above will do for each page named in "sorturls" (which has a single url, including "http://" on each line)
-T.McWee
mcwee@m-net.arbornet.org
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Loading A Site Into An Array
by Anonymous Monk on Mar 10, 2000 at 02:38 UTC | |
by btrott (Parson) on Mar 10, 2000 at 03:20 UTC |