Locale::CA - two letter codes for province identification in Canada and vice versa
Version 0.02
use Locale::CA; my $u = Locale::CA->new(); my $province = $u->{code2province}{$code}; my $code = $u->{province2code}{$province}; my @province = $u->all_province_names; my @code = $u->all_province_codes;
Creates a Locale::CA object.
Returns an array (not arrayref) of all province codes in alphabetical form.
Returns an array (not arrayref) of all province names in alphabetical form
This is a hashref which has two-letter province names as the key and the long name as the value.
This is a hashref which has the long name as the key and the two-letter province name as the value.
Nigel Horne, <njh at bandsman.co.uk>
<njh at bandsman.co.uk>
The province name is returned in uc() format.
uc()
neither hash is strict, though they should be.
You can find documentation for this module with the perldoc command.
perldoc Locale::CA
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Locale-CA
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Locale-CA
CPAN Ratings
http://cpanratings.perl.org/d/Locale-CA
Search CPAN
http://search.cpan.org/dist/Locale-CA/
Based on Locale::US - Copyright (c) 2002 - $present Terrence Brannon.
$present
Copyright 2012-2015 Nigel Horne.
This program is released under the following licence: GPL
To install Locale::CA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::CA
CPAN shell
perl -MCPAN -e shell install Locale::CA
For more information on module installation, please visit the detailed CPAN module installation guide.