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.