Linux SoftwareProgrammingLibrariesTelephony::CountryDialingCodes 1.02

Telephony::CountryDialingCodes 1.02


Telephony::CountryDialingCodes is a Perl module that can convert international dialing codes to country codes and vice versa. SYNO
Developer:   Craig Manley
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   4K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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 int'l dialing code from an int'l 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 country's 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 free'd 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. It's 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:
  • Perl
    tags dialing code  country code  telephony countrydialingcodes  print the  access code  dialing access  @country codes  international dialing  country codes  the country  use telephony  these methods  call these  

    Download Telephony::CountryDialingCodes 1.02


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/C/CM/CMANLEY/Telephony-CountryDialingCodes-1.02.tar.gz


    Authors software

    Telephony::CountryDialingCodes 1.02 (by Craig Manley)
    Telephony::CountryDialingCodes is a Perl module that can convert international dialing codes to country codes and vice versa.

    SYNO


    Similar software

    Telephony::CountryDialingCodes 1.02 (by Craig Manley)
    Telephony::CountryDialingCodes is a Perl module that can convert international dialing codes to country codes and vice versa.

    SYNO

    Locale::SubCountry 1.37 (by Kim Ryan)
    Locale::SubCountry is a Perl module that can convert state, province, county etc

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    IP::Country 2.21 (by Nigel Wetters Gourlay)
    IP::Country is a tool for fast lookup of country codes from IP addresses

    ANT 0.1.12 (by Roland Stigge)
    ANT is a desktop ISDN telephony application written for GNU/Linux

    Class::Meta::Declare 0.04 (by Curtis Poe)
    Class::Meta::Declare is a Perl module deprecated in favor of Class::Meta::Express.

    SYNOPSIS

    This was a first attempt at making

    Seyon 2.20c (by Steve McIntyre)
    Seyon is a complete full-featured telecommunications project for the X Window System

    Method::Declarative 0.03 (by Jim Schneider)
    Method::Declarative is a Perl module to create methods with declarative syntax.

    SYNOPSIS

    use Method::Declarative
    (
    '-

    MathML::Entities 0.13 (by Jacques Distler)
    MathML::Entities is a Perl module that can convert XHTML+MathML Named Entities to Numeric Character References.

    SYNOPSIS

    use M

    Math::Telephony::ErlangB 0.06 (by Flavio Poletti)


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags