David Cantrell > Number-Phone-3.0 > Number::Phone::Lib

Download:
Number-Phone-3.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0   Source   Latest Release: Number-Phone-3.0001

NAME ^

Number::Phone::Lib - Instantiate Number::Phone::* objects from libphonenumber

SYNOPSIS ^

    use Number::Phone::Lib;

    $daves_phone = Number::Phone::Lib->new('+442087712924');
    $daves_other_phone = Number::Phone::Lib->new('+44 7979 866 975');
    # alternatively      Number::Phone::Lib->new('+44', '7979 866 975');
    # or                 Number::Phone::Lib->new('UK', '07979 866 975');

    if ( $daves_phone->is_mobile() ) {
        send_rude_SMS();
    }

This subclass of Number::Phone exclusively uses classes generated from Google's libphonenumber project. libphonenumber doesn't have enough data to support all the features of Number::Phone, but you might want to use its data and no other for a few reasons:

That said, the core Number::Phone UK module is far more comprehensive.

LICENCE ^

You may use, modify and distribute this software under the same terms as perl itself.

AUTHORS ^

Copyright 2014.

syntax highlighting: