Number::Phone::JP is a simple module to validate Japanese phone
number formats. The Japanese phone numbers are regulated by
Ministry of Internal Afairs and Communications of Japan.
You can validate what a target number is valid from this
regulation point of view.
There are many categories for type of telephones in Japan. This module
is able to be used narrowed down to the type of phones.
This module only validates what a phone number agrees on the
regulation. Therefore, it does <B>NOTB> validate what a phone number
This validation needs only an area (or category) prefix and behind it.
The separator of number behind the prefix is ignored.
It exists to select what categories is used for validation. You should
pass some specified categories to this method.
Categories list is as follows:
Class1 ... Class1 undertaking associations
Class2 ... Class2 undertaking associations
Freedial ... Freedials
Home ... Household phones
IPPhone ... IP phones
Mobile ... Mobile phones
Pager ... Pager (called "pocketbell")
PHS ... Personal Handy-phone Systems
Q2 ... Dial Q2 services
United ... United phone number
FMC ... Fixed Mobile Convergence
(was started in 2007 in Japan)
UPT ... Universal Personal Telecommunication
(was merged to FMC category in 2007 in Japan.
this class works same as FMC.
its left for backward compatibility.)
The categorys names are <B>ignored caseB>. Actually, the import method
calls others Number::Phone::JP::Table::Category module and
import this. The default importing table, Number::Phone::JP::Table
module is including all the categories table.
For importing, you can import by calling this method, and you can
import by <B>calling this moduleB> with some arguments.
# by calling import method
use Number::Phone::JP; # import all the categories (default)
my $tel = Number::Phone::JP->new->import(qw(mobile PHS));
# by calling this module
use Number::Phone::JP qw(Mobile Phs);
my $tel = Number::Phone::JP->new; # same as above