Which outputs this is a test. See the HTML::TokeParser::Simple docs for more info (caveat: with the latest version of H::T::S the return_text method is better known as as_is).use HTML::TokeParser::Simple; my $p = HTML::TokeParser::Simple->new(\*DATA); while(my $t = $p->get_token) { print $p->get_token()->return_text and last if $t->is_start_tag('title'); } __DATA__ <html> <head> <title>this is a test</title> </head> </html>
_________
broquaint
In reply to Re: HTML Parser
by broquaint
in thread HTML Parser
by stew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |