NAME

Number::Phone::Formatter::EPP - An EPP formatter for Number::Phone

VERSION

version 0.07

SYNOPSIS

 # Option 1: use with Number::Phone
 #
 # prints: +44.2087712924
 #
 my $number = Number::Phone->new('+44 20 8771 2924');
 print $number->format_using('EPP');

 # Option 2: use standaline, without Number::Phone
 #
 # prints: +44.2087712924
 #
 print Number::Phone::Formatter::EPP->format('+44 20 8771 2924');

DESCRIPTION

This is a formatter that will format an E.123 formatted number (from Number::Phone) as an EPP phone number. This can be used with Number::Phone, or, as a standalone module if you do not need the features of Number::Phone.

METHODS

format

This is the only method. It takes an E.123 international format string as its only argument and reformats it in EPP (RFC 5733) format. For example:

 +44 20 8771 2924 -> +44.2087712924
 +1 212 334 0611  -> +1.2123340611

SEE ALSO

RFC 5733

SOURCE

The development version is on github at https://github.com/mschout/perl-number-phone-formatter-epp and may be cloned from git://github.com/mschout/perl-number-phone-formatter-epp.git

BUGS

Please report any bugs or feature requests to bug-number-phone-formatter-epp@rt.cpan.org or through the web interface at: http://rt.cpan.org/Public/Dist/Display.html?Name=Number-Phone-Formatter-EPP

AUTHOR

Michael Schout <mschout@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Michael Schout.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.