in reply to Re: Pulling HTML from a remote site and writing a portion of it to a file on server
in thread Pulling HTML from a remote site and writing a portion of it to a file on server
#!/usr/bin/perl use strict; use LWP::Simple; use LWP::UserAgent; my $data = get("http://www.cyrusoilandgas.com"); my ($wanted) = $data =~ /<!---------------PETROLEUM----------------->\ +s*(.*)\s*<map name="BbgELogin2">/s; open (FH,"./file.txt") ||die"$!"; print FH $data; close FH;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Pulling HTML from a remote site and writing a portion of it to a file on server
by bikeNomad (Priest) on Jun 23, 2001 at 22:45 UTC | |
|
(jeffa) 3Re: Pulling HTML from a remote site and writing a portion of it to a file on server
by jeffa (Bishop) on Jun 23, 2001 at 22:46 UTC |