source: trunk/gsdl/perllib/cpan/HTML/TokeParser/Simple/Token/Comment.pm@ 13983

Last change on this file since 13983 was 13983, checked in by lh92, 17 years ago

Added for Realistic Book Project

  • Property svn:keywords set to Author Date Id Revision
File size: 828 bytes
Line 
1package HTML::TokeParser::Simple::Token::Comment;
2
3use strict;
4
5use vars qw/ $VERSION $REVISION /;
6$REVISION = '$Id: Comment.pm 13983 2007-03-15 01:32:44Z lh92 $';
7$VERSION = '1.0';
8use base 'HTML::TokeParser::Simple::Token';
9
10sub is_comment { 1 }
11
121;
13
14__END__
15
16=head1 NAME
17
18HTML::TokeParser::Simple::Token::Comment - Token.pm comment class.
19
20=head1 SYNOPSIS
21
22 use HTML::TokeParser::Simple;
23 my $p = HTML::TokeParser::Simple->new( $somefile );
24
25 while ( my $token = $p->get_token ) {
26 # This prints all text in an HTML doc (i.e., it strips the HTML)
27 next unless $token->is_text;
28 print $token->as_is;
29 }
30
31=head1 DESCRIPTION
32
33This is the class for comment tokens.
34
35See L<HTML::Parser> for detailed information about comments.
36
37=head1 OVERRIDDEN METHODS
38
39=head2 is_comment
40
41C<is_comment()> will return true if the token is the DTD at the top of the
42HTML.
43
44=cut
Note: See TracBrowser for help on using the repository browser.