Geography::China::Provinces - To retrieve ISO 3166:CN standard Chinese provinces
use Geography::China::Provinces; my @municipals = Geography::China::Provinces->municipals; my @provinces = Geography::China::Provinces->provinces; my @autonomous_regions = Geography::China::Provinces->autonomous_regions; my @special_admin_regions = Geography::China::Provinces->special_admin_regions; my $region = Geography::China::Provinces->iso(11);
This module helps retrieving ISO standard Chinese provincial level divisions.
http://en.wikipedia.org/wiki/Provinces_of_the_People's_Republic_of_China
my @regions = Geography::China::Provinces->all; #=> Get all regions
my @regions = Geography::China::Provinces->municipals; #=> Get all municipal cities
my @regions = Geography::China::Provinces->provinces; #=> Get all provinces
my @regions = Geography::China::Provinces->autonomous_regions; #=> Get all autonomous regions
my @regions = Geography::China::Provinces->special_admin_regions; #=> Get all special administrative regions
my %areas = Geography::China::Provinces->areas; #=> Get Chinese geographic areas as a hash
my @regions = Geography::China::Provinces->area(1); #=> Get regions in area 1
my @regions = Geography::China::Provinces->area_name('huadong'); #=> Get regions in area `huadong'
my $region = Geography::China::Provinces->iso(11); #=> Get region with ISO code 11
my @regions = Geography::China::Provinces->category('municipality'); #=> Get municipal regions
yowcow <yowcow@gmail.com>
<yowcow@gmail.com>
Copyright (c) 2011, yowcow <yowcow@gmail.com>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Geography::China::Provinces, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geography::China::Provinces
CPAN shell
perl -MCPAN -e shell install Geography::China::Provinces
For more information on module installation, please visit the detailed CPAN module installation guide.