Skip Menu |

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

Report information
The Basics
Id: 67438
Status: resolved
Priority: 0/
Queue: Locale-Codes

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

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



Subject: Spurious undef warning on Locale::Country::rename_country
In Locale::Country 3.16, using this code from the synopsis: Locale::Country::rename_country('gb' => 'Great Britain') results in an undef warning: $ perl -MLocale::Country -e "Locale::Country::rename_country('gb' => 'Great Britain')" Use of uninitialized value within @args in string eq at /Users/sartak/.perl/perls/perl-5.12.3/lib/5.12.3/Locale/Country.pm line 166. The problem seems to be: $nowarn = 1, pop(@args) if ($args[$#args] eq "nowarn"); maybe this should read: $nowarn = 1, pop(@args) if ($#args >= 0 && $args[$#args] eq "nowarn"); Thanks.
Thanks. This will be fixed in the next release.