1HTML::TokeParser::SimplUes:e:rToCkoennt:r:iCboumtHmeTedMnLtP:(e:3rT)lokDeoPcaurmseenrt:a:tSiiomnple::Token::Comment(3)
2
3
4
6 HTML::TokeParser::Simple::Token::Comment - Token.pm comment class.
7
9 use HTML::TokeParser::Simple;
10 my $p = HTML::TokeParser::Simple->new( $somefile );
11
12 while ( my $token = $p->get_token ) {
13 # This prints all text in an HTML doc (i.e., it strips the HTML)
14 next unless $token->is_text;
15 print $token->as_is;
16 }
17
19 This is the class for comment tokens.
20
21 See HTML::Parser for detailed information about comments.
22
24 is_comment
25 is_comment() will return true if the token is the DTD at the top of the
26 HTML.
27
28
29
30perl v5.36.0 20H2T3M-L0:1:-T2o0keParser::Simple::Token::Comment(3)