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.548.171 Times

Telephony::CountryDialingCodes 1.02

  Date Added: March 10, 2010  |  Visits: 793

Telephony::CountryDialingCodes

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 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  -  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  
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  -  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  
Libraries  -  Test::Tail::Multi 0.03
Test::Tail::Multi is a Perl module to execute code, monitor dynamic file contents. SYNOPSIS use Test::Tail::Multi files => [qw(file1 file2)] tests=>2; # Can add files dynamically as well add_file(file3, "decided to add file3 too"); #...
5.12 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