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
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 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.
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.
VERSIONNING
The Number-Phone-FR
distribution contains different modules which have their own versions:
Number::Phone::FR :
m.nn
(major . minor)Number::Phone::FR::Full :
m.nnyyddd
(major . minor year day-of-year)
m.nn
is the versionning of the code. Common for the two packages.
yyddd
is the versionning of the ARCEP data.
DATA SOURCES
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
SEE ALSO
SUPPORT
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Number-Phone-FR
AUTHOR
Olivier Mengué, <<dolmen@cpan.org
>>
COPYRIGHT AND LICENSE
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.