Skip Menu |

This queue is for tickets about the XML-Filter-BufferText CPAN distribution.

Report information
The Basics
Id: 83870
Status: new
Priority: 0/
Queue: XML-Filter-BufferText

People
Owner: Nobody in particular
Requestors: BRIANC [...] cpan.org
Cc:
AdminCc:

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



Subject: Use of uninitialized value warning on line 18
The characters function attempts to append text to an undefined value ($_[0]->{_CharBuffer}) the first time the characters method is called. Although XML::Filter::BufferText does not use warnings, running under perl -w or prove -w will still cause perl to scream bloody murder, in my case 440 times. Since we're guaranteed that start_document will be called before characters, you probably just want to move the line "$self->{_CharBuffer} = '';" out of and right below the if.