Skip Menu |

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

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

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

Bug Information
Severity: Wishlist
Broken in: 2.04
Fixed in: 2.04



Subject: Can new() take the abbreviated form?
Currently I need to do Locale::SubCountry->new('France') but it would help if I could alternatively do: Locale::SubCountry->new('FR')
You can specify just the country code such as 'FR'. The synopsis only shows full country name. But see the doco for the new method: The C<new> method creates an instance of a sub country object. This must be called before any of the following methods are invoked. The method takes a single argument, the name of the country that contains the sub country that you want to work with. It may be specified either by the ISO 3166-1 alpha-2 code or the full name.