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

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

People
Owner:
kimryan [...] cpan.org
Requestors:
alexp [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
1.61
Fixed in:
1.63



Subject: Use of uninitialized value $current_name
When we have for example my $country = new Locale::SubCountry('BM'); $country->code('blah'); following error is thrown Use of uninitialized value $current_name in uc at /usr/local/lib/perl5/site_perl/5.14.2/Locale/SubCountry.pm line 619,
sorry, meant to say following warning is thrown On Wed Oct 23 00:35:50 2013, ALEXP wrote:
Show quoted text
> When we have for example > > my $country = new Locale::SubCountry('BM'); > $country->code('blah'); > > following error is thrown > > Use of uninitialized value $current_name in uc at > /usr/local/lib/perl5/site_perl/5.14.2/Locale/SubCountry.pm line 619,
Thanks, will fix this soon.
Now check that a country has some sub country data before proceeding to look up code and full name. Note that you can use the has_sub_countries method to check for this manually.


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.