Skip Menu |

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

Report information
The Basics
Id: 89706
Status: resolved
Priority: 0/
Queue: Locale-SubCountry

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

Bug Information
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.