The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Number::Phone::FR - Phone number information for France (+33)

SYNOPSIS

Use Number::Phone::FR through Number::Phone:

    use Number::Phone;
    my $num = Number::Phone->new('+33148901515');

Select a particular implementation of Number::Phone::FR for this package:

    use Number::Phone::FR 'Full';
    my $num = Number::Phone->new('+33148901515');

    use Number::Phone::FR 'Simple';
    my $num = Number::Phone->new('+33148901515');

One-liners:

    perl -MNumber::Phone "-Esay Number::Phone->new(q!+33148901515!)->format"
    perl -MNumber::Phone::FR=Full "-Esay Number::Phone->new(q!+33148901515!)->operator"
    perl -MNumber::Phone::FR=Full "-Esay Number::Phone::FR->new(q!3949!)->operator"

DESCRIPTION

This is a subclass of Number::Phone that provides information for phone numbers in France.

Note: Cette documentation est également disponible en français dans POD2::FR::Number::Phone::FR.

Two implementations are provided:

  • Simple

  • Full: a more complete implementation that does checks based on information from the ARCEP.

The implementation is selected for a particular package by importing the Number::Phone::FR package with the selected implementation. All Number::Phone::FR objects created from this package (either indirectly with Number::Phone->new or explicitely with Number::Phone::FR->new) will be created using this implementation.

DATA SOURCES

https://extranet.arcep.fr/portail/Op%C3%A9rateursCE/Num%C3%A9rotation.aspx#PUB

The tools for rebuilding the Number-Phone-FR CPAN distribution with updated data are included in the distribution:

    perl Build.PL
    ./Build update
    perl Build.PL
    ./Build
    ./Build test
    ./Build dist

VERSIONNING

The Number-Phone-FR distribution contains different modules which have their own versions:

m.nn is the versionning of the code. Common for the two packages.

yyddd is the versionning of the ARCEP data.

SEE ALSO

SUPPORT

(english or french)

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Number-Phone-FR

The latest available source code (work in progress) is published on GitHub: https://github.com/dolmen/p5-Number-Phone-FR

AUTHOR

Olivier Mengué, mailto:dolmen@cpan.org

COPYRIGHT AND LICENSE

Copyright © 2010-2014 Olivier Mengué.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.