Number::Phone

Base class for Number::Phone::* modules
Download

Number::Phone Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Cantrell
  • Publisher web site:
  • http://search.cpan.org/~dcantrell/

Number::Phone Tags


Number::Phone Description

Base class for Number::Phone::* modules Number::Phone is a Perl base class for Number::Phone::* modules.SYNOPSISIn a sub-class ... package Number::Phone::UK; use base 'Number::Phone';and to magically use the right subclass ... use Number::Phone; $daves_phone = Number::Phone->new('+442087712924'); $daves_other_phone = Number::Phone->new('+44 7979 866 975'); if($daves_phone->is_mobile()) { send_rude_SMS(); }in the example, the +44 is recognised as the country code for the UK, so the appropriate country-specific module is loaded if available. If you pass in a bogus country code or one for a country for which no supporting module is available, the constructor will return undef. Requirements: · Perl


Number::Phone Related Software