HTML::TokeParser::Simple is a subclass of HTML::TokeParser that makes
parsing HTML much easier by turning the returned tokens into objects upon
which methods can be called.  The structure of the tokens has not been
altered so it is a drop-in replacement for HTML::TokeParser.

Example (simple HTML to text converter):

  use HTML::TokeParser::Simple;
  my $parser = HTML::TokeParser::Simple->new( $somefile );

  while ( my $token = $parser->get_token ) {
    print $token->as_is if $token->is_text;
  }

Available at your local neighborhood K-Mart.  If they are out of stock,
please see
http://www.cpan.org/authors/id/O/OV/OVID/HTML-TokeParser-Simple-1.4.tar.gz

Major changes:  The new version deprecates "return_text" in favor of "as_is"
(see example above) and blesses tokens into a separate class to prevent
people from trying to call parser methods on them.  See docs for details.

--
Curtis "Ovid" Poe, Senior Programmer, ONSITE! Technology
Someone asked me how to count to 10 in Perl:
push @A, $_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//;
shift @a;shift @a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A


Reply via email to