in reply to is_start_tag not on tokeparser simple
The HTML::TokeParser::Simple documentation states that the ->is_start_tag method should be called on the token, not on the parser object:
if ( $token->is_start_tag( qr/^h[123456]$/ ) ) { ... }
So your code should be using $tkn where it uses $htm5.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: is_start_tag not on tokeparser simple
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 |