Processing a web page (or looping over a multi line string)
- From: "Jason" <japrice@xxxxxxxxx>
- Date: 28 Dec 2005 06:54:30 -0800
The problem I'm trying to solve:
There's a status web page that this program needs to check. Any line
that matches:
^\s<td>some information</td>
is one that I need to process. I just need the 'some information'
part.
I found LWP::Simple, and I'm getting the webpage with 'get $url'. The
problem is I can't figure out how to loop over the lines of HTML to
find what I want.
I've tried:
my $content = get $url;
while ($line = $content) {
and
while ($line = get $url) {
and
my $content = get $url;
open(CONTENT, "$content") or die "Couldn't get url $!";
and
my $content = get $url;
open(CONTENT, $content) or die "Couldn't get url $!";
and
open(CONTENT, get $url) or die "Couldn't get url $!";
and
open(CONTENT, "get $url") or die "Couldn't get url $!";
I'm missing something fundamental. Thanks for any pointers.
.
- Follow-Ups:
- Re: Processing a web page (or looping over a multi line string)
- From: Paul Lalli
- Re: Processing a web page (or looping over a multi line string)
- Prev by Date: Re: why a.pl is faster than b.pl
- Next by Date: Re: Processing a web page (or looping over a multi line string)
- Previous by thread: why a.pl is faster than b.pl
- Next by thread: Re: Processing a web page (or looping over a multi line string)
- Index(es):
Relevant Pages
|
|