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

Report information
The Basics
Id:
16540
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
MIROD [...] cpan.org
Requestors:
graham [...] cs.man.ac.uk
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
3.22
Fixed in:
3.23



Subject: Unfortunate name choice
Linux FC3 perl 5.8.5 XML::Twig 3.22 XML::Parser 2.34 Error message Not a HASH reference at /usr/lib/perl5/site_perl/5.8.5/XML/Twig.pm line 1769. I have some code using XML::Twig which has served me well for quite a while which produced the above error when I recently had to reinstall XML::Twig. I eventually tracked the problem down to the fact that I had an XML tag with the name of 'level'. Changing this to something else fixed the problem. Tracking down the source has taken me several hours of hair tearing! The offending code is my $twig= new XML::Twig (TwigRoots => { name => \&save_info, title => \&save_info, level => \&save_info, etc Thnaks for your work on XML::Twig, I've found it very useful (at least until yesterday ;-) ) Regards Graham
Hi Graham, Nice catch, and quite a glaring bug in XML::Twig. I'll fix it in a hurry. Thanks __ mirod
Hi Graham, The new version on my site has a fix (tested at the top of t/test_bug_3.22.t). Can you check if it works for you and let me know? Thanks __ mirod


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.