jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
Update: closed the code tag!!use strict; use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use CGI ':standard'; print "Content-type: text/html\n\n"; use HTML::TokeParser::Simple; my $page = 'slices.html'; open FH, $page or die $!; my @file = <FH>; close FH; my $file = join "", @file; my $p = HTML::TokeParser::Simple->new( \$file ); while ( my $token = $p->get_token ) { next unless $token->is_text; my $line = $token->as_is; print $line; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: HTML::TokeParser::Simple
by wfsp (Abbot) on May 26, 2006 at 16:21 UTC | |
by jonnyfolk (Vicar) on May 26, 2006 at 16:45 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |