Subject: | Parsing pure string, the last word is dropped. |
Hi,
My perl version is "v5.8.8 built for i486-linux-gnu-thread-multi"
My HTML::Parser version is "3.56"
My OS version is "Linux 2.6.18-5-686 #1 SMP".
Not sure if it's a bug. When I used the module to parse a pure text(no
html tag in it), it dropped the last word.
Then try this:
use HTML::Parser;
my $p = HTML::Parser->new(
api_version => 3,
default_h => [sub {print "!!!@_!!!\n" }, "text"],
case_sensitive => 1
);
$p->parse("Some Text."); ### "Text." will be disappear.
Then try this:
$p->parse("<p>Some Text.</p>"); ### This works correctly.