in reply to (XML::Parser) Finding and fixing a bug
I'm still struggling to understand what the original (buggy) code was trying to achieve. Was it to enable something like this to actually work:
open CONFIG, ('config.xml') || die $!;
my $parser = XML::Parser->new(Style => 'Tree');
my $config = $parser->parse('CONFIG');
If so, that doesn't seem to work even using the unpatched
version of the module. Can anyone give a working example of
providing a symbol name to the parse method? If the original code does not actually work as intended, then a patched version wouldn't need to worry about backwards compatibility.