Locale::India - ISO 3166-2 defines codes for identifying the principal subdivisions (e.g., provinces or states) of all countries coded in ISO 3166-1. This module is used for state and union territory identification in the India and vice versa.
use Locale::India; my $u = Locale::India->new; my $state = $u->{code2state}{$code}; my $code = $u->{state2code}{$state}; my $ut = $u->{code2ut}{$code}; my $ut_code = $u->{ut2code}{$ut}; my @state = $u->get_all_state_names; my @code = $u->get_all_state_codes; my @ut = $u->get_all_ut_names; my $ut_code = $u->get_all_ut_codes;
Map for India state and union territory codes to names and vice versa.
This is a hashref which has state code names as the key and the long state name as the value.
This is a hashref which has the long state names the key and the state code name as the value.
This is a hashref which has union territory code names as the key and the long union territory name as the value.
This is a hashref which has the long union territory names the key and the union territory code name as the value.
Returns an array (not arrayref) of all state names in alphabetical form
Returns an array (not arrayref) of all state codes in alphabetical form.
Returns an array (not arrayref) of all union territory names in alphabetical form
Returns an array (not arrayref) of all union territory codes in alphabetical form.
The state and union territory names is returned in uc() format.
uc()
neither hash is strict, though they should be.
Locale::Country
http://www.iso.org/iso/home/standards/country_codes/updates_on_iso_3166.htm?show=tab3
Online file with the state and union territory codes for the India and its possessions.
This software is copyright (c) 2015 by Manoj Shekhawat.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
License: GPL, Artistic, available in the Debian Linux Distribution at /usr/share/common-licenses/{GPL,Artistic}
Manoj Shekhawat, <mshekhawa@cpan.org>
To install Locale::India, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::India
CPAN shell
perl -MCPAN -e shell install Locale::India
For more information on module installation, please visit the detailed CPAN module installation guide.