Subject: | XML TreeBuilder |
Date: | Wed, 31 Aug 2011 15:36:30 -0400 |
To: | jfearn [...] cpan.org, bug-XML-TreeBuilder [...] rt.cpan.org |
From: | David Hofmann <elmic11111 [...] gmail.com> |
I'm getting an error when attempting to parse and XML file.
Can't use string ("ErrorContext") as a HASH ref while "strict refs" in
use at /usr/share/perl5/vendor_perl/XML/TreeBuilder.pm line 20.
I'm using:
perl 5, version 12, subversion 4 (v5.12.4) built for i386-linux-thread-multi
perl-XML-TreeBuilder.noarch 4.0-4.fc15
Here the code to call it:
my $tree = XML::TreeBuilder->new(ErrorContext => 2);
$tree->parsefile($xmlfile);
This is a new system which I just setup. So I'm thinking there might
be a dependance issue somewhere because I've used this code the the
past on other system. But I've gone through the dependance and can't
find any missing.
Any help would be appreciated.
David