Number::Phone::FR - Phone number information for France (+33)
Use Number::Phone::FR through Number::Phone:
Number::Phone::FR
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"
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.
Full
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.
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
The Number-Phone-FR distribution contains different modules which have their own versions:
Number-Phone-FR
Number::Phone::FR : m.nn (major . minor)
m.nn
Number::Phone::FR::Full : m.nnyyddd (major . minor year day-of-year)
m.nnyyddd
m.nn is the versionning of the code. Common for the two packages.
yyddd is the versionning of the ARCEP data.
yyddd
http://fr.wikipedia.org/wiki/Plan_de_num%C3%A9rotation_t%C3%A9l%C3%A9phonique_en_France
(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
Olivier Mengué, mailto:dolmen@cpan.org
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.
To install Number::Phone::FR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Number::Phone::FR
CPAN shell
perl -MCPAN -e shell install Number::Phone::FR
For more information on module installation, please visit the detailed CPAN module installation guide.