Geography::States 2.1
Sponsored Links
Geography::States 2.1 Ranking & Summary
File size:
0.006 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
983
Date added:
2007-02-14
Publisher:
Abigail
Geography::States 2.1 description
Geography::States is a Perl module with map states and provinces to their codes, and vice versa.
SYNOPSIS
use Geography::States;
my $obj = Geography::States -> new (COUNTRY [, STRICT]);
EXAMPLES
my $canada = Geography::States -> new (Canada);
my $name = $canada -> state (NF); # Newfoundland.
my $code = $canada -> state (Ontario); # ON.
my ($code, $name) = $canada -> state (BC); # BC, British Columbia.
my @all_states = $canada -> state; # List code/name pairs.
This module lets you map states and provinces to their codes, and codes to names of provinces and states.
The Geography::States - new ()> call takes 1 or 2 arguments. The first, required, argument is the country we are interested in. Current supported countries are USA, Brazil, Canada, The Netherlands, and Australia. If a second non-false argument is given, we use strict mode. In non-strict mode, we will map territories and alternative codes as well, while we do not do that in strict mode. For example, if the country is USA, in non-strict mode, we will map GU to Guam, while in strict mode, neither GU and Guam will be found.
The state() method
All queries are done by calling the state method in the object. This method takes an optional argument. If an argument is given, then in scalar context, it will return the name of the state if a code of a state is given, and the code of a state, if the argument of the method is a name of a state. In list context, both the code and the state will be returned.
If no argument is given, then the state method in list context will return a list of all code/name pairs for that country. In scalar context, it will return the number of code/name pairs. Each code/name pair is a 2 element anonymous array.
Arguments can be given in a case insensitive way; if a name consists of multiple parts, the number of spaces does not matter, as long as there is some whitespace. (That is "NewYork" is wrong, but "new YORK" is fine.)
SYNOPSIS
use Geography::States;
my $obj = Geography::States -> new (COUNTRY [, STRICT]);
EXAMPLES
my $canada = Geography::States -> new (Canada);
my $name = $canada -> state (NF); # Newfoundland.
my $code = $canada -> state (Ontario); # ON.
my ($code, $name) = $canada -> state (BC); # BC, British Columbia.
my @all_states = $canada -> state; # List code/name pairs.
This module lets you map states and provinces to their codes, and codes to names of provinces and states.
The Geography::States - new ()> call takes 1 or 2 arguments. The first, required, argument is the country we are interested in. Current supported countries are USA, Brazil, Canada, The Netherlands, and Australia. If a second non-false argument is given, we use strict mode. In non-strict mode, we will map territories and alternative codes as well, while we do not do that in strict mode. For example, if the country is USA, in non-strict mode, we will map GU to Guam, while in strict mode, neither GU and Guam will be found.
The state() method
All queries are done by calling the state method in the object. This method takes an optional argument. If an argument is given, then in scalar context, it will return the name of the state if a code of a state is given, and the code of a state, if the argument of the method is a name of a state. In list context, both the code and the state will be returned.
If no argument is given, then the state method in list context will return a list of all code/name pairs for that country. In scalar context, it will return the number of code/name pairs. Each code/name pair is a 2 element anonymous array.
Arguments can be given in a case insensitive way; if a name consists of multiple parts, the number of spaces does not matter, as long as there is some whitespace. (That is "NewYork" is wrong, but "new YORK" is fine.)
Geography::States 2.1 Screenshot
Geography::States 2.1 Keywords
States 2.1
To Their
map states
vice versa
Perl module
state
map
states
codes
canada
argument
Geography::States
GeographyStates
Geography::States 2.1
Libraries
Programming
Bookmark Geography::States 2.1
Geography::States 2.1 Copyright
WareSeeker periodically updates pricing and software information of Geography::States 2.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Geography::States 2.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
united states map
map of united states
map united states
map of the united states
map of 52 states in usa
united states postal service
map of united states printable
united states road map
state farm insurance
united states post office
50 states
empire state building
united states
map states mexico
united states map states
50 states in alphabetical order
ohio state university
state of the union address
Related Software
Geography::USStates is a Perl module that allows you to get information on US State names. Free Download
KGeography is a geography learning tool. Free Download
Geography::Countries is a Perl module with 2-letter, 3-letter, and numerical codes for countries. Free Download
GeoGebra project is a dynamic mathematics software that joins geometry, algebra, and calculus. Free Download
Geography::NationalGrid::TW is a Perl module to convert Taiwan Datum (TWD67/TM2, TWD97/TM2) to/from Latitude and Longitude. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
Image::WorldMap is a Perl module to create graphical world maps of data. Free Download
DBIx::EnumConstraints is a Perl module that generates enum-like SQL constraints. Free Download
Latest Software
Popular Software
Favourite Software