Processing a web page (or looping over a multi line string)



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.

.



Relevant Pages

  • Re: Need an imaging esize program - help please!
    ... able to add blank space to create the desired dimensions. ... original dimensions, OR, if we choose, stretch them to fit (which is ... Am I missing something? ... (The program needs to add blank space to the ...
    (rec.photo.digital)
  • Re: TCategoryButtons Caption and color does not change
    ... > newsgroup. ... > My program needs to change the Caption and the Color of category button ... Maarten Wiltink ... Prev by Date: ...
    (alt.comp.lang.borland-delphi)
  • Re: Still good people out there
    ... Maybe a program needs to be printed to identify the players {;^) ... Brian ... Prev by Date: ...
    (misc.transport.trucking)
  • Msvcp80.dll dependency
    ... dependancy walker shows that my simple win32 ... program needs Msvcp80.dll. ... Is there a way to avoid this? ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: Problems with Labview and Windows XP with error -2147217865
    ... Embedded in the error information you provided: ... ... Can't open file: 'solcelledata.MYD'. ... Sounds like the program needs this file?  Has the program been moved to a new location? ... Prev by Date: ...
    (comp.lang.labview)