Subject: | Stopping warnings for countries which have no divisions |
Hi
I'm getting this msg:
Use of uninitialized value within @_ in lc at
/home/ron/perl5/perlbrew/perls/perl-
5.12.2/lib/site_perl/5.12.2/Locale/Geocode/Division.pm line 49.
Line 208 of Locale::Geocode::Territory needs to be:
return map { $self->lookup($_->{code}) || () } grep{defined && defined
$_->{code} } @{ $self->{data}->{division} };
to handle those countries without divisions.
Cheers
Ron