Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This code errors out with "can't located object method 'is_start_tag' via package HTML::TokeParser::Simple"
my $headtags = ''; use HTML::TokeParser::Simple; my $htm5 = HTML::TokeParser::Simple->new( \$src); while ( my $tkn = $htm5->get_token ) { if ($htm5->is_start_tag( qr/^h[123456]$/ )) { next if (!$htm5->get_text); $headtags= $headtags . " " . $htm5->get_text; } } print "HEADing TAGS: $headtags\n\n\n\n"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: is_start_tag not on tokeparser simple
by Corion (Patriarch) on Mar 22, 2006 at 17:17 UTC | |
by Anonymous Monk on Mar 22, 2006 at 17:28 UTC | |
by revdiablo (Prior) on Mar 22, 2006 at 21:50 UTC | |
by Anonymous Monk on Mar 22, 2006 at 22:52 UTC | |
by revdiablo (Prior) on Mar 23, 2006 at 06:15 UTC |