Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Parse::PhoneNumber::ID 0.06

    Download button

    No screenshots available
    Downloads: 92  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Steven Haryanto | More programs
    Perl Artistic License / FREE
    February 4th, 2012, 04:26 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Parse::PhoneNumber::ID description

    Parse Indonesian phone numbers

    Parse::PhoneNumber::ID is a Perl module that can extract/parse Indonesian phone numbers. See extract_id_phones() for more details.

    This module uses Log::Any logging framework, so you can use something like Log::Any::App to easily show more logging output during debugging.

    This module uses Sub::Spec framework, so you can switch between named arguments and positional, run the subroutine from the command line, etc. Refer to Sub::Spec documentation for more details.

    SYNOPSIS

     use Parse::PhoneNumber::ID qw(parse_id_phone extract_id_phones);
     use Data::Dump;

     dd parse_id_phone(text => 'Jual dalmatian 2bl lucu2x. Hub: 7123 4567',
     default_area_code=>'022');

    Will print something like:

     { raw => 'Hub: 7123 4567',
     pretty => '022-7123-4567',
     standard => '+62.22.71234567',
     is_cell => 1,
     is_gsm => 0,
     is_cdma => 1,
     operator => 'telkom',
     product => 'flexi',
     area_code => '022',
     province => 'jabar',
     cities => 'Bandung, Cimahi, ...',
     local_number => '71234567',
     country => 'Indonesia',
     country_code => '62',
     ext => undef, }


    To extract more than one numbers in a text:

     my $phones = extract_id_phones(text => 'some text containing phone number(s):'.
     '0812 2345 6789, +62-22-91234567');
     say "There are ", scalar(@$phones), "phone number(s) found in text";
     for (@$phones) { say $_->{pretty} }


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    phone numbers | number parser | Perl module | Indonesian | phone | number

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM