in reply to Re^2: HTML::Tidy and mysterious HTML::Tidy::Document
in thread HTML::Tidy and mysterious HTML::Tidy::Document
Someone needs to ping petdance (with a patch?). The documentation lies. Here's working code:
#!/usr/bin/perl use strict; use warnings; use HTML::Tidy; my $fname = join ' ', @ARGV; my $html = do { local $/; <> }; # slurp file(s) from commandline my $tidy = HTML::Tidy->new(); $tidy->parse( $fname, $html ); warn $_->as_string, "\n" for $tidy->messages; print $tidy->clean( $html );
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: HTML::Tidy and mysterious HTML::Tidy::Document
by Cody Pendant (Prior) on Jan 18, 2005 at 10:13 UTC | |
by Aristotle (Chancellor) on Jan 18, 2005 at 11:01 UTC | |
by Cody Pendant (Prior) on Jan 19, 2005 at 10:08 UTC |
In Section
Seekers of Perl Wisdom