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("
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
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 = &
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
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
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
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