Business-DK-Phonenumber
view release on metacpan or search on metacpan
lib/Class/Business/DK/Phonenumber.pm view on Meta::CPAN
=item * <8 digit phonenumber>
=back
The prefixed plus sign and space used as separator are optional as are the
international dialing code.
The phone number can be formatted in anyway separated using whitespace
characters.
=head2 template($template)
This is accessor to the template attribute.
Provided with a valid template parameter the object's template attribute
is set.
If the accessor is not provided with a template parameter, the one defined is in
the object is returned.
See also: L<Business::DK::Phonenumber/validate_template>, which is used
internally to validate the template parameter.
=head1 DIAGNOSTICS
=over
=item * phone number not in recognisable format, the phone number provided to
the constructor is not parsable. Please evaluate what you are attempting to
feed to the constructor.
=item * phone number parameter is mandatory for the constructor, please specify
the phone number parameter to the constructor in order to continue.
=item * template not in recognisable format, the template provided to the
constructor is not in a parsable format, please evaluate what you attempting to
feed to the constructor.
=back
=head1 CONFIGURATION AND ENVIRONMENT
No special configuration or environment is necessary.
=head1 DEPENDENCIES
=over
=item * L<Carp>
=item * L<Exporter>
=item * L<Business::DK::Phonenumber>
=back
=head1 INCOMPATIBILITIES
No known incompatibilities at this time.
=head1 BUGS AND LIMITATIONS
No known bugs or limitations at this time.
=head1 TEST AND QUALITY
=over
=item * The L<Perl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators>
policy has been disabled. We are working with phonenumbers, strings consisting primarily of number, so not special interpretation or calculative behaviour is needed.
=item * L<Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma> policy has been disabled. I like constants.
=item * L<Perl::Critic::Policy::InputOutput::RequireBracedFileHandleWithPrint> policy has been disabled for now should be revisited at some point.
=back
=head1 TODO
=over
=item * Please refer to the distribution TODO file
=back
=head1 SEE ALSO
=over
=item L<sprintf>
Business::DK::Phonenumber utilizes sprintf to as templating system for
formatting telephonenumbers. This is a well specified and tested interface
which is easy to use.
=back
=head1 BUG REPORTING
Please report issues via CPAN RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-DK-Phonenumber
or by sending mail to
bug-Business-DK-Phonenumber@rt.cpan.org
=head1 MOTIVATION
I have been working in Telco for a long time. So validation and formatting of
telephone numbers is something I have seen at lot of. This module is an attempt
to sort of consolidate the numerous different regular expression solutions
I have seen scathered over large code bases.
=head1 AUTHOR
Jonas B. Nielsen, (jonasbn) - C<< <jonasbn@cpan.org> >>
=head1 COPYRIGHT
Business-DK-Phonenumber and related is (C) by Jonas B. Nielsen, (jonasbn) 2008-2014
( run in 1.286 second using v1.01-cache-2.11-cpan-4ab04211f4c )