Number::Phone::IE - Republic of Ireland-specific methods for Number::Phone
use Number::Phone; $dermots_phone = Number::Phone->new('IE', '017654321');
The following methods from Number::Phone are overridden:
The 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.
The 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.
The number refers to a geographic area.
The number, when in use, can only refer to a fixed line.
The number, when in use, can only refer to a mobile phone.
The number, when in use, can only refer to a pager.
Callers will not be charged for calls to this number under normal circumstances.
The number, when in use, attracts special rates. For instance, national dialling at local rates, or premium rates for services.
The number, when in use, goes to a service of an adult nature, such as porn.
The number is some kind of network service such as a human operator, directory enquiries, emergency services etc
Returns some text in an appropriate character set saying who the telecoms regulator is, with optional details such as their web site or phone number.
Return the area code - if applicable - for the number. If not applicable, returns undef.
Return the area name - if applicable - for the number, or undef.
Return the subscriber part of the number
Return 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.
Return 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.
If the number is_international, return the two-letter ISO country code.
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.
Please report bugs by email, including, if possible, a test case.
I welcome feedback from users.
You may use, modify and distribute this software under the same terms as perl itself.
Dermot McNally <firstname.lastname@example.org> cloned from the UK equivalent by David Cantrell <email@example.com>