in reply to Re: Perl HTML::Tidy
in thread Perl HTML::Tidy
Thanks for pointing me at the additional documentation. I just installed Alien::TidyP and HTML::Today and have the following non working code. It's not grabbing any files yet. I'll continue to work on it:
use HTML::Tidy; my $call_dir = "/Users/joe/desktop/Test8"; #my $tidy = HTML::Tidy->new( {config_file => 'path/to/config'} ); my @files = glob "$calls_dir/*.hmtl"; printf "Got %d files\n", scalar @files; for my $file (@files) { open my $in_fh, '<', $file; $tidy->ignore( type => TIDY_WARNING, type => TIDY_INFO ); $tidy->parse( $file, $contents_of_file ); for my $message ( $tidy->messages ) { print $message->as_string; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl HTML::Tidy
by poj (Abbot) on Feb 02, 2016 at 08:20 UTC | |
by Anonymous Monk on Feb 02, 2016 at 17:29 UTC |