Number::Phone::IE

Number::Phone::IE is a Perl module with Republic of Ireland-specific methods for Number::Phone.
Download

Number::Phone::IE Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dermot McNally
  • Publisher web site:
  • http://search.cpan.org/~dermot/Number-Phone-IE-0.2/lib/Number/Phone/IE.pm

Number::Phone::IE Tags


Number::Phone::IE Description

Number::Phone::IE is a Perl module with Republic of Ireland-specific methods for Number::Phone. Number::Phone::IE is a Perl module with Republic of Ireland-specific methods for Number::Phone.SYNOPSIS use Number::Phone; $dermots_phone = Number::Phone->new('IE', '017654321');METHODSThe following methods from Number::Phone are overridden:is_validThe number is valid within the national numbering scheme. It may or may not yet be allocated, or it may be reserved. Any number which returns true for any of the following methods will also be valid.is_allocatedThe number has been allocated to a telco for use. It may or may not yet be in use or may be reserved. Not currently implemented.is_geographicThe number refers to a geographic area.is_fixed_lineThe number, when in use, can only refer to a fixed line.is_mobileThe number, when in use, can only refer to a mobile phone.is_pagerThe number, when in use, can only refer to a pager.is_tollfreeCallers will not be charged for calls to this number under normal circumstances.is_specialrateThe number, when in use, attracts special rates. For instance, national dialling at local rates, or premium rates for services.is_adultThe number, when in use, goes to a service of an adult nature, such as porn.is_network_serviceThe number is some kind of network service such as a human operator, directory enquiries, emergency services etccountry_codeReturns 353.regulatorReturns some text in an appropriate character set saying who the telecoms regulator is, with optional details such as their web site or phone number.areacodeReturn the area code - if applicable - for the number. If not applicable, returns undef.areanameReturn the area name - if applicable - for the number, or undef.subscriberReturn the subscriber part of the numberoperatorReturn the name of the telco operating this number, in an appropriate character set and with optional details such as their web site or phone number. Not currently implemented.formatReturn a sanely formatted version of the number, complete with IDD code, eg for the Irish number (021) 765-4321 it would return +353 21 7654321.countryIf the number is_international, return the two-letter ISO country code.NYILimitations:· Strictly sppeaking, this kind of duplication of the Number::Phone::UK class is bad. A tidy-up is in order, though it may emerge that a completely new implemantation is better.· The results are only as accurate as my own investigations into current allocations. User feedback welcome.· While the names of the nominal owners of mobile prefixes are given, number portability makes this information unreliable.Requirements:· Perl Requirements: · Perl


Number::Phone::IE Related Software