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

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

Serving Software Downloads in 956 Categories, Downloaded 50.234.091 Times

Telephony::CountryDialingCodes 1.02

  Date Added: March 10, 2010  |  Visits: 1.095

Telephony::CountryDialingCodes

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



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 Telephony::CountryDialingCodes(); my $country_code = NL; print "The dialing access code for country $country_code is " . $o->dialing_code($country_code) . "n"; my $dialing_code = 1; my @country_codes = $o->country_codes($dialing_code); print "The country code(s) for dialing access code $dialing_code is/are: " . join(,,@country_codes) . "n"; # Usage method 2 (using class methods): use Telephony::CountryDialingCodes; my $country_code = NL; print "The dialing access code for country $country_code is " . Telephony::CountryDialingCodes->dialing_code($country_code) . "n"; my $dialing_code = 1; my @country_codes = Telephony::CountryDialingCodes->country_codes($dialing_code); print "The country code(s) for dialing access code $dialing_code is/are: " . join(,,@country_codes) . "n"; # Extracting an intl dialing code from an intl phone number: use Telephony::CountryDialingCodes; my $o = new Telephony::CountryDialingCodes(); my $dialing_code = $o->extract_dialing_code(+521234567890); # $dialing_code will contain 52. This class exports a method for determining a countrys international dialing code, and another method for doing the reverse: i.e. determining the country code(s) that belong(s) to a given international dialing code. You can call these methods as class methods or you can create an object and call these methods as object methods. The difference is that if you call them in object context that the internal lookup tables are freed when the object is destroyed, otherwise if you call the methods in class context, then the internal lookup tables are global and will persist for the lifespan of the current process. Its not really a big deal which approach you choose, so for the sake of style, use the object method approach if you have no clue which is better..

Requirements: No special requirements
Platforms: Linux
Keyword: Access Code Code Codes Country Country Codes Countrydialingcodes Dialing Dialing Codes International Dialing International Dialing Codes Methods Object Perl Module Telephonycountrydialingcodes
Users rating: 0/10

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


TELEPHONY::COUNTRYDIALINGCODES RELATED
Libraries  -  Geography::Countries 1.4
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)...
9.22 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  -  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  -  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  
Modules  -  Webform invites 5.x-1.x-dev 1.0
The access code is only valid for a single submission, which prevents duplicate submissions.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules. Requirements: - Drupal 5.x...
 
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  -  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  -  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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
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