Number::Phone::NO - Number::Phone country package for NO (Norway)
version 0.11
use Number::Phone; use Number::Phone::NO; Number::Phone::NO::is_valid("+47 2234 5123"); my $s = Number::Phone::NO::format("2234 5123"); $s eq "+47 22 34 51 23"
Number::Phone::NO tries to provide the Number::Phone framework with support for norwegian phone numbers. Its data is based on the number plans provided by Post- og teletilsynet, which is a govermental institution.
Takes a number as its only argument, returning a blessed object if the number is valid, or undef on invalid.
Never returns anything, as we do not have reliable area-codes in Norway.
Formats the numbers according to Post- og teletilsynets recomendations.
Returns the company that has been assigned the range the number lives in. Due to portability of numbers in Norway, this may no longer be the right operator.
Returns 47, which is the norwegian country code
Never returns anything since there is no way to tell from the public information.
Always returns Post- og teletilsynet
Returns the 3-8 digits part of the phonenumer that isn't the country_code
Returns the name of the area the number was originaly allocated for. Due to number portability, this may no longer be the right area.
Returns true for numbers in the ranges marked as premium rate services
Returns true for all numbers in ranges not marked as reserve or available
Always returns undef, as the data is inconclusive.
Returns true for numbers within the ranges marked with IP
Returns true for numbers within tanges marked with GSM
Returns true for numbers in the 100-199 range, which includes emergency service etc.
Returns undef, as the data is inconclusive.
Returns true for numbers that are marked as some type of rate in the data
Returns true for numbers marked as reversed charge
Returns true if the number falls within a range.
Number::Phone::NO requires no configuration files or environment variables.
Andreas Marienborg <andremar@cpan.org>
This software is copyright (c) 2013 by Andreas Marienborg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Number::Phone::NO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Number::Phone::NO
CPAN shell
perl -MCPAN -e shell install Number::Phone::NO
For more information on module installation, please visit the detailed CPAN module installation guide.