Number::Phone::FR - Phone number information for France (+33)
# Use Number::Phone::FR through Number::Phone use Number::Phone; my $num = Number::Phone->new('+33148901515'); # Select a particular implementation 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 provide information for phone numbers in France.
Two implementation 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.
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://www.arcep.fr/index.php?id=8992
It looks like ARCEP publishes updates about every month.
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
http://fr.wikipedia.org/wiki/Plan_de_num%C3%A9rotation_t%C3%A9l%C3%A9phonique_en_France
Number::Phone
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Number-Phone-FR
Olivier Mengué, <<dolmen@cpan.org>>
<<dolmen@cpan.org
Copyright © 2010-2011 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.