Dermot McNally > Number-Phone-IE-0.2 > Number::Phone::IE

Download:
Number-Phone-IE-0.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.2   Source  

NAME ^

Number::Phone::IE - Republic of Ireland-specific methods for Number::Phone

SYNOPSIS ^

    use Number::Phone;

    $dermots_phone = Number::Phone->new('IE', '017654321');

METHODS ^

The following methods from Number::Phone are overridden:

is_valid

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.

is_allocated

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.

is_geographic

The number refers to a geographic area.

is_fixed_line

The number, when in use, can only refer to a fixed line.

is_mobile

The number, when in use, can only refer to a mobile phone.

is_pager

The number, when in use, can only refer to a pager.

is_tollfree

Callers will not be charged for calls to this number under normal circumstances.

is_specialrate

The number, when in use, attracts special rates. For instance, national dialling at local rates, or premium rates for services.

is_adult

The number, when in use, goes to a service of an adult nature, such as porn.

is_network_service

The number is some kind of network service such as a human operator, directory enquiries, emergency services etc

country_code

Returns 353.

regulator

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.

areacode

Return the area code - if applicable - for the number. If not applicable, returns undef.

areaname

Return the area name - if applicable - for the number, or undef.

subscriber

Return the subscriber part of the number

operator

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.

format

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.

country

If the number is_international, return the two-letter ISO country code.

NYI

LIMITATIONS/BUGS/FEEDBACK ^

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.

LICENCE ^

You may use, modify and distribute this software under the same terms as perl itself.

AUTHOR ^

Dermot McNally <dermotm@gmail.com> cloned from the UK equivalent by David Cantrell <david@cantrell.org.uk>

Copyright 2004

syntax highlighting: