This is the CPAN module HTML::TokeParser::Simple. . HTML::TokeParser::Simple is a subclass of HTML::TokeParser that uses easy-to-remember method calls to work with tokens. For instance, rather than writing code like this: . $token->[0] eq 'S' and $token->[1] eq 'form' . . you can instead write something simpler like this: . $token->is_start_tag( 'form' ) .