08 Apr 2005 08:58:56 UTC
- Distribution: Number-Phone-IE
- Module version: 0.2
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (59 / 0 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: unknown
- Activity24 month
- Download (112.1KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
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 <email@example.com> cloned from the UK equivalent by David Cantrell <firstname.lastname@example.org>
Module Install Instructions
To install Number::Phone::IE, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Number::Phone::IE
For more information on module installation, please visit the detailed CPAN module installation guide.