Number::Phone::JP

Validate Japanese phone numbers
Download

Number::Phone::JP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Koichi Taniguchi
  • Publisher web site:
  • http://search.cpan.org/~taniguchi/

Number::Phone::JP Tags


Number::Phone::JP Description

Validate Japanese phone numbers Number::Phone::JP is a simple Perl module to validate Japanese phone number formats. The Japanese phone numbers are regulated by Ministry of Public Management, Home Affairs, Posts and Telecommunications 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 NOT validate what a phone number actually exists.This validation needs only an area (or category) prefix and behind it. The separator of number behind the prefix is ignored.SYNOPSIS use Number::Phone::JP; my $tel = Number::Phone::JP->new('012', '34567890'); print "This is valid!!\n" if $tel->is_valid_number; $tel->set_number('098 7654 3210'); print "This is valid!!\n" if $tel->is_valid_number; $tel->import(qw(mobile PHS)); $tel->set_number('090-0123-4567'); print "This is valid!!\n" if $tel->is_valid_number; Requirements: · Perl


Number::Phone::JP Related Software