Skip Menu |

This queue is for tickets about the GPS-Track CPAN distribution.

Report information
The Basics
Id: 122600
Status: resolved
Priority: 0/
Queue: GPS-Track

People
Owner: bitcard [...] sveneppler.de
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.01
Fixed in: 0.02



Subject: Localize $XML::Simple::PREFERRED_PARSER
Line https://metacpan.org/source/GHANDI/GPS-Track-0.01/lib/GPS/Track.pm#L75 should look like this: local $XML::Simple::PREFERRED_PARSER = "XML::SAX::ExpatXS"; Otherwise the change of the variable is global and possibly effects other parts of the calling program.
Am Di 25. Jul 2017, 15:09:11, SREZIC schrieb: Show quoted text
> Line https://metacpan.org/source/GHANDI/GPS-Track- > 0.01/lib/GPS/Track.pm#L75 should look like this: > > local $XML::Simple::PREFERRED_PARSER = "XML::SAX::ExpatXS"; > > Otherwise the change of the variable is global and possibly effects > other parts of the calling program.
Hi, thanks for taking a look into my code and pointing this out. I will fix this in the next release. Best regards GHANDI
With v0.02 the usage of $XML::Simple::PREFERRED_PARSER has been localized. See https://github.com/ghandmann/gps-track/commit/73b58076073286e7127da0b8c6f532cb26382a77 Thanks for your report!