Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.541.711 Times

Geography::Countries 1.4

  Date Added: January 18, 2010  |  Visits: 877

Geography::Countries

Report Broken Link
Printer Friendly Version


Product Homepage
Download (82 downloads)



Geography::Countries is a Perl module with 2-letter, 3-letter, and numerical codes for countries. SYNOPSIS use Geography::Countries; $country = country DE; # Germany @list = country 666; # (PM, SPM, 666, # Saint Pierre and Miquelon, 1) This module maps country names, and their 2-letter, 3-letter and numerical codes, as defined by the ISO-3166 maintenance agency [1], and defined by the UNSD. The country subroutine. This subroutine is exported by default. It takes a 2-letter, 3-letter or numerical code, or a country name as argument. In scalar context, it will return the country name, in list context, it will return a list consisting of the 2-letter code, the 3-letter code, the numerical code, the country name, and a flag, which is explained below. Note that not all countries have all 3 codes; if a code is unknown, the undefined value is returned. There are 3 categories of countries. The largest category are the current countries. Then there is a small set of countries that no longer exist. The final set consists of areas consisting of multiple countries, like Africa. No 2-letter or 3-letter codes are available for the second two sets. (ISO 3166-3 [3] defines 4 letter codes for the set of countries that no longer exist, but the author of this module was unable to get her hands on that standard.) By default, country only returns countries from the first set, but this can be changed by giving country an optional second argument. The module optionally exports the constants CNT_F_REGULAR, CNT_F_OLD, CNT_F_REGION and CNT_F_ANY. These constants can also be important all at once by using the tag :FLAGS. CNT_F_ANY is just the binary or of the three other flags. The second argument of country should be the binary or of a subset of the flags CNT_F_REGULAR, CNT_F_OLD, and CNT_F_REGION - if no, or a false, second argument is given, CNT_F_REGULAR is assumed. If CNT_F_REGULAR is set, regular (current) countries will be returned; if CNT_F_OLD is set, old, no longer existing, countries will be returned, while CNT_F_REGION is used in case a region (not necessarely) a country might be returned. If country is used in list context, the fifth returned element is one of CNT_F_REGULAR, CNT_F_OLD and CNT_F_REGION, indicating whether the result is a regular country, an old country, or a region. In list context, country returns a 5 element list. To avoid having to remember which element is in which index, the constants CNT_I_CODE2, CNT_I_CODE3, CNT_I_NUMCODE, CNT_I_COUNTRY and CNT_I_FLAG can be imported. Those constants contain the indices of the 2-letter code, the 3-letter code, the numerical code, the country, and the flag explained above, respectively. All index constants can be imported by using the :INDICES tag. The code2, code3, numcode and countries routines. All known 2-letter codes, 3-letter codes, numerical codes and country names can be returned by the routines code2, code3, numcode and countries. None of these methods is exported by default; all need to be imported if one wants to use them. The tag :LISTS imports them all. In scalar context, the number of known codes or countries is returned..

Requirements: No special requirements
Platforms: Linux
Keyword: Cnt Code Codes Countries Country Geographycountries Libraries Numerical Old Perl Module Programming Region Regular
Users rating: 0/10

License: Freeware Size: 9.22 KB
USER REVIEWS
More Reviews or Write Review


GEOGRAPHY::COUNTRIES RELATED
Libraries  -  Telephony::CountryDialingCodes 1.02
Telephony::CountryDialingCodes is a Perl module that can convert international dialing codes to country codes and vice versa. SYNOPSIS # Usage method 1 (using object methods): use Telephony::CountryDialingCodes; my $o = new...
4.1 KB  
Libraries  -  Geography::States 2.1
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...
6.14 KB  
Libraries  -  Convert::GeekCode 0.51
Convert::GeekCode is a Perl module that can convert and generate geek code sequences. SYNOPSIS use Convert::GeekCode; # exports geek_decode() my @out = geek_decode(q( -----BEGIN GEEK CODE BLOCK----- Version: 3.12...
25.6 KB  
Libraries  -  Code::Perl 0.03
Code::Perl is a Perl module to produce Perl code from a tree. SYNOPSIS use Code::Perl::Expr qw( :easy ); my $c = derefh(scal(hash), calls(getkey)); print $c->perl; # ($hash)->{getkey()} Code::Perl allows you to build chunks of Perl code...
17.41 KB  
Libraries  -  Barcode::Code128 2.01
Barcode::Code128 is a Perl module that can generate CODE 128 bar codes. SYNOPSIS use Barcode::Code128; $code = new Barcode::Code128; EXPORTS By default, nothing. However there are a number of constants that represent special characters...
14.34 KB  
Libraries  -  Module::Crypt 0.04
Module::Crypt is a Perl module to encrypt your Perl code and compile it into XS. SYNOPSIS use Module::Crypt; # for a single file: CryptModule( file => Bar.pm, install_base => /path/to/my/lib ); # for multiple files: CryptModule(...
7.17 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Test::Fixme 0.01
Test::Fixme is a Perl module to check code for FIXMEs. SYNOPSIS # In a test script like t/test-fixme.t use Test::Fixme; run_tests(); # You can also tailor the behaviour. use Test::Fixme; run_tests( where => lib, # where to find files to...
5.12 KB  
Libraries  -  Benchmark 5.8.8
Benchmark is a Perl module with benchmark running times of Perl code. SYNOPSIS use Benchmark qw(:all) ; timethis ($count, "code"); # Use Perl code in strings... timethese($count, { Name1 => ...code1..., Name2 => ...code2..., }); #...
12.2 MB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB