Subject: | DoubleEncodedEntities does not work with HTML::TokeParser::Simple v. 3.15 |
HTML::TokeParser::Simple v. 3.15 does not accept "doc =>" in the
constructor, it wants "string =>". I'm not sure when the change in
HTML::TokeParser::Simple was made, but the Build.PL file should probably
be more strict about the required version.
OS (Tiger 10.4.6) & perl version:
[goo:~] jeff% uname -a; perl -v
Darwin goo 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST
2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc
This is perl, v5.8.6 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
The following diff against lib/Test/DoubleEncodedEntities.pm fixes the
issue:
--- Test-DoubleEncodedEntities-0.01/lib/Test/DoubleEncodedEntities.pm
2004-08-23 05:40:33.000000000 -0700
+++ Test-DoubleEncodedEntities-0.02/lib/Test/DoubleEncodedEntities.pm
2006-04-08 22:27:00.000000000 -0700
@@ -24,7 +24,7 @@
my $name = shift || "double encoded entity test";
# parse the input
- my $p = HTML::TokeParser::Simple->new( doc => $input )
+ my $p = HTML::TokeParser::Simple->new( string => $input )
or die "Can't parse input";
$p->unbroken_text(1);