Data::FormValidator::Constraints::Business::DK::Phonenumber - a DFV constraints wrapper
This documentation describes version 0.01
use Data::FormValidator::Business::DK::Phonenumber qw(valid_dk_phonenumber); my $dfv_profile = { required => [qw(phonenumber)], constraint_methods => { phonenumber => valid_dk_phonenumber(), } }; my $input_hash; my $result; $input_hash = { phonenumber => 1234567, }; $result = Data::FormValidator->check($input_hash, $dfv_profile);
This module implements experimental Data::FormValidator constraints.
This method validates a string for resemblance to a valid Danish telephone number.
This subroutine can be used for untainting a parameter.
Please refer to Data::FormValidator
The module is intended for use with Data::FormValidator.
Business::DK::Phonenumber
Data::FormValidator
No known incompatibilities at this time.
No known bugs or limitations at this time.
The 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.
Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma policy has been disabled. I like constants.
Perl::Critic::Policy::InputOutput::RequireBracedFileHandleWithPrint policy has been disabled for now should be revisited at some point.
Please refer to the distribution TODO file
Data::FormValidator::Constraints
Class::Business::DK::Phonenumber
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
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.
Jonas B. Nielsen, (jonasbn) - <jonasbn@cpan.org>
<jonasbn@cpan.org>
Data-FormValidator-Business-DK-Phonenumber is (C) by Jonas B. Nielsen, (jonasbn) 2008-2009
Data-FormValidator-Business-DK-Phonenumber is released under the artistic license
The distribution is licensed under the Artistic License, as specified by the Artistic file in the standard perl distribution (http://www.perl.com/language/misc/Artistic.html).
To install Business::DK::Phonenumber, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::DK::Phonenumber
CPAN shell
perl -MCPAN -e shell install Business::DK::Phonenumber
For more information on module installation, please visit the detailed CPAN module installation guide.