thanks Chas.

regex worked fine in my case. But my question was: how to specifically sift
out a particular line number. Also, while using LWP modules, what type of
data is $content = get($url)? Is it an array? Is there a way to find out
what kind of data a particular variable stores?

thanks
raghu

On 9/14/07, Chas Owens <[EMAIL PROTECTED]> wrote:
>
> On 9/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I am looking for one particular line in an HTML page. How can I find
> > this in a perl program.
> >
> > Basically, I want to grep this one line containing what I know.
> snip
>
> A lot depends on how you can identify that line.  The best solution is
> to use an HTML parser to create a Perl data structure you can walk
> through to find your data; however, if you have distinct enough
> anchors you can often easily grab the data with a regex (but this
> solution tends to be fragile).  Without more information about your
> data we can't provide much more help.
>



-- 
There's a whole lot of difference between what one can do, what one thinks
one can do and what one does.

Reply via email to