This queue is for tickets about the Locale-SubCountry CPAN distribution.

Report information
The Basics
Id:
120002
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
doug [...] theschrags.net
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
2.00
Fixed in:
2.02



Subject: Module pollutes main:: namespace
The main module imports several packages (including JSON) outside of any package declaration. This results in any default imports (such as from_json, to_json, ...) being imported into the main:: namespace. It looks like no imports are intended anyway, only ensuring that the modules are loaded. For a minimal fix, the pull request: https://github.com/kimryan/Locale-SubCountry/pull/1 places those use statements in the package namespace for the file. It also prevents JSON from exporting any of its defaults.
From: dmaestro12
The pull request above has been accepted and merged. Just waiting for a new release ;-)
From: dmaestro12
On Tue Jan 31 09:26:13 2017, https://openid.stackexchange.com/user/3cffd334-9f13-42d9-894d-ec689b4ad3c5 wrote:
Show quoted text
> The pull request above has been accepted and merged. Just waiting for > a new release ;-)
Release v2.02 is out and fixes my problem! Thanks.
Added package declaration before external module imports


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.