Skip Menu |

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

Report information
The Basics
Id: 118205
Status: resolved
Priority: 0/
Queue: XML-Simple

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.22
Fixed in: (no value)



Subject: Don't initialize $PREFERRED_PARSER
Currently $PREFERRED_PARSER is initialized in XML/Simple.pm (actually a no-op, as the value is undefined anyway): $PREFERRED_PARSER = undef; This is problematic if user code tries to set $XML::Simple::PREFERRED_PARSER before XML::Simple is loaded. In this case the initialization would nullify the user's setting. Some use cases: $XML::Simple::PREFERRED_PARSER = '...'; require XML::Simple; or use Image::Info 'image_info'; $XML::Simple::PREFERRED_PARSER = '...'; image_info("image.svg"); # loads an XML parser (e.g. XML::Simple) on demand Best to remove the line completely.
Thanks for your report. I have followed your suggestion and removed the line from the code. I've uploaded version 2.24 which incorporates this fix to CPAN. Regards Grant