Skip Menu |

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

Report information
The Basics
Id: 16540
Status: resolved
Priority: 0/
Queue: XML-Twig

Owner: MIROD [...]
Requestors: graham [...]

Bug Information
Severity: Important
Broken in: 3.22
Fixed in: 3.23

Subject: Unfortunate name choice
Download (untitled) / with headers
text/plain 786b
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/ 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
Download (untitled) / with headers
text/plain 102b
Hi Graham, Nice catch, and quite a glaring bug in XML::Twig. I'll fix it in a hurry. Thanks __ mirod
Download (untitled) / with headers
text/plain 161b
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 is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to