
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.


The module is intended for use with Data::FormValidator.


No known incompatibilities at this time.

No known bugs or limitations at this time.




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>

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).