CN::Provice - China Province names and abbreviations
use CN::Province; my $province = CN::Provice->abbr2province('JS'); my $abbr = CN::Provice->province2abbr('江苏'); my @province = CN::Provice->all_province; my @abbr = CN::Provice->all_abbr;
Returns the abbreviation for the given province name. Returns undefined if the name is unknown.
my $abbr = CN::Province->province2abbr('江苏');
Returns the province name for the given abbreviation.
my $province = CN::Province->abbr2province('JS');
Returns all province names.
my @province = CN::Provice->all_province;
Returns all abbreviative names.
my @abbr = CN::Provice->all_abbr;
Wayne Zhou <cumtxhzyy@gmail.com>
Copyright 2012 by Wayne Zhou.
To install CN::Province, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CN::Province
CPAN shell
perl -MCPAN -e shell install CN::Province
For more information on module installation, please visit the detailed CPAN module installation guide.