-
-
16 Jul 2020 13:22:22 UTC
- Distribution: Locale-CA
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository (git clone)
- Issues
- Testers (887 / 1 / 0)
- Kwalitee
Bus factor: 1- 84.06% Coverage
- License: open_source
- Perl: v5.6.2
- Activity
24 month- Tools
- Download (14.16KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Data::Section::Simple
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- SUBROUTINES/METHODS
- SEE ALSO
- AUTHOR
- BUGS
- SUPPORT
- ACKNOWLEDGEMENTS
- LICENSE AND COPYRIGHT
NAME
Locale::CA - two letter codes for province identification in Canada and vice versa
VERSION
Version 0.04
SYNOPSIS
use Locale::CA; my $u = Locale::CA->new(); # Returns the French names of the provinces if $LANG starts with 'fr' or # the lang parameter is set to 'fr' my $province = $u->{code2province}{$code}; my $code = $u->{province2code}{$province}; my @province = $u->all_province_names; my @code = $u->all_province_codes;
SUBROUTINES/METHODS
new
Creates a Locale::CA object.
all_province_codes
Returns an array (not arrayref) of all province codes in alphabetical form.
all_province_names
Returns an array (not arrayref) of all province names in alphabetical form
$self->{code2province}
This is a hashref which has two-letter province names as the key and the long name as the value.
$self->{province2code}
This is a hashref which has the long name as the key and the two-letter province name as the value.
SEE ALSO
AUTHOR
Nigel Horne,
<njh at bandsman.co.uk>
BUGS
The province name is returned in
uc()
format.neither hash is strict, though they should be.
SUPPORT
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
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
Based on Locale::US - Copyright (c) 2002 -
$present
Terrence Brannon.LICENSE AND COPYRIGHT
Copyright 2012-2020 Nigel Horne.
This program is released under the following licence: GPL2
Module Install Instructions
To install Locale::CA, copy and paste the appropriate command in to your terminal.
cpanm Locale::CA
perl -MCPAN -e shell install Locale::CA
For more information on module installation, please visit the detailed CPAN module installation guide.