RE: HTML::TokeParser::Simple / get_attr

2004-11-24 Thread Brian Volk
Charles, Thank you! It's working! I went w/ the... foreach approach... my $parser = HTML::TokeParser::Simple->new(\$page) || die "Could not parse page"; my ($tag, $attr); $tag = $parser->get_tag("table") foreach (1..10); $parser->get_tag("

RE: HTML::TokeParser::Simple / get_attr

2004-11-24 Thread Charles K. Clarkson
trict. use strict; : use HTML::TokeParser::Simple; [snip] : my $parser = HTML::TokeParser->new(\$page) || : die "Could not parse page"; Wrong object. my $parser = HTML::TokeParser::Simple->new( \$page ) || die &quo

HTML::TokeParser::Simple / get_attr

2004-11-24 Thread Brian Volk
Hi All, I'm trying to only get the text from w/in a certain table in the HTML source. Right now I am getting all the text in the source. Here is my script I made notes in the script. #!/usr/bin/perl -w use HTML::TokeParser::Simple; use LWP::Simple; my $url = &

Re: Html::tokeparser::simple

2003-11-28 Thread R. Joseph Newton
ied on your own. Anyway, I hope this makes up for my negligence a bit. I'm not sure that HTML::TokeParser::Simple adds anything to the functionality of HTML::TokeParser for your purposes [at least what you have described here]. The Simple part mostly has to do with making the tag types and

Re: Html::tokeparser::simple

2003-11-26 Thread drieux
On Wednesday, Nov 26, 2003, at 12:30 US/Pacific, Paul Kraus wrote: Someone want to show me how this module can help parse out html? I want to grap text between text being able to apple regexp to get what I want. The problem is my text is among 10,000 td tags. With the only difference being what

Re: Html::tokeparser::simple

2003-11-26 Thread R. Joseph Newton
Paul Kraus wrote: > Someone want to show me how this module can help parse out html? > > I want to grap text between text being able to apple regexp to > get what I want. > > The problem is my text is among 10,000 td tags. With the only difference > being what the above tag has in it. > > So if t

Html::tokeparser::simple

2003-11-26 Thread Paul Kraus
Someone want to show me how this module can help parse out html? I want to grap text between text being able to apple regexp to get what I want. The problem is my text is among 10,000 td tags. With the only difference being what the above tag has in it. So if th tag = then store text between i