develooper Front page | perl.beginners | Postings from March 2002

finding text

Thread Next
From:
Michael Gargiullo
Date:
March 27, 2002 21:43
Subject:
finding text
Message ID:
NGBBJEADBDIGMPLAMOCNOEADCCAA.gargiullo@comcast.net
I use LWP::Simple to get an HTML page. I only want to keep one table row,
and then only the data from the row in seperate fields.

For example:

<html>
<head>
<title>page 1</title>
</head>
<body>
<table><tr><td>some text</td></tr><tr><td>a few links</td></tr></table>
<table>
<tr><td>some text</td><td>some text</td></tr>
<tr><td>some text</td><td>a few links</td></tr>
<tr><td> THE DATA I WANT</td><td> MORE DATA I WANT</td>
</table>

I want to be able to set vars to each of the data pieces on the page I want
to keep.

i know i should do some pattern matching of some sort, but need some sort of
kick start.  This is my first attempt at writting a perl script to parse
through text.



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About