Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the HTML-Parser CPAN distribution.

Report information
The Basics
Id: 31941
Status: rejected
Priority: 0/
Queue: HTML-Parser

Owner: Nobody in particular
Requestors: romerun [...]

Bug Information
Severity: Normal
Broken in: 3.56
Fixed in: (no value)

Subject: Parsing pure string, the last word is dropped.
Download (untitled) / with headers
text/plain 553b
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.
It's not a bug. You need to call $p->eof to flush any remaining text.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to