GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Locale::Geocode::Territory(3) User Contributed Perl Documentation Locale::Geocode::Territory(3)

Locale::Geocode::Territory

Locale::Geocode::Territory represents an individual country or territory as listed in ISO-3166-1. This class provides methods for returning information about the territory and any administrative divisions therein.

To be listed in ISO-3166-1, a country or territory must be listed in the United Nations Terminology Bulletin Country Names or Country and Region Codes for Statistical Use of the UN Statistics Division. In order for a country or territory to be listed in the Country Names bulletin, one of the following must be true of the territory:

  - is a United Nations member state a member
  - is a member of any of the UN specialized agencies
  - a party to the Statute of the International Court of Justice

 my $lct    = new Locale::Geocode::Territory 'US';

 # lookup a subdivision of US
 my $lcd    = $lct->lookup('TN');

 # retrieve ISO-3166-2 information for US-TN
 my $name   = $lcd->name;   # Tennessee
 my $code   = $lcd->code;   # TN

 # returns an array of Locale::Geocode::Division
 # objects representing all divisions of US
 my @divs   = $lct->divisions;

new
lg
lookup
lookup_by_index
name
num
alpha2
alpha3
fips
has_notes
num_notes
notes
note
divisions
returns an array of Locale::Geocode::Division objects representing all territorial divisions. this method honors the configured extensions.
divisions_sorted
the same as divisions, only all objects are sorted according to the specified metadata. if metadata is not specified (or is invalid), then all divisions are sorted by name. the supported metadata is any data-oriented method of Locale::Geocode::Division (name, code, fips, region, et alia).
num_divisions

 Mike Eldridge <diz@cpan.org>

 Kim Ryan

 L<Locale::Geocode>
 L<Locale::Geocode::Division>
2009-02-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.