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
26 the HTML.
27
28
29
30perl v5.32.0 20H2T0M-L0:7:-T2o8keParser::Simple::Token::Comment(3)