Data::FormValidator::Constraints::Business::DK::Postalcode - constraint for Danish Postal codes
The documentation describes version 0.01 of Data::FormValidator::Constraints::Business::DK::Postalcode
use Data::FormValidator; use Data::FormValidator::Constraints::Business::DK::Postalcode qw(valid_postalcode); my $dfv_profile = { required => [qw(postalcode)], constraint_methods => { postalcode => valid_postalcode(), } }; my $dfv_profile = { required => [qw(postalcode)], constraint_methods => { postalcode => valid_postalcode(), }, untaint_all_constraints => 1, };
This module exposes a set of subroutines which are compatible with Data::FormValidator. The module implements contraints as specified in Data::FormValidator::Constraints.
For a more through description of Danish postal codes please see: Business::DK::Postalcode.
Checks whether a Postalcode is valid (see: SYNOPSIS) and Business::DK::Postalcode
Untaints a given Postalcode (see: SYNOPSIS and BUGS AND LIMITATIONS)
A simple wrapper for "match_postalcode"
Data::FormValidator::Constraints::Business::DK::Postalcode exports on request:
"valid_postalcode"
"match_postalcode"
Please refer to Data::FormValidator for documentation on this
The module requires no special configuration or environment to run.
Data::FormValidator
Business::DK::Postalcode
The module has no known incompatibilities.
The tests seem to reflect that untainting is taking place, but the "match_postalcode" is not called at all, so how this untaiting is expected to be integrated into Data::FormValidator is still not clear to ne (SEE: TODO)
Coverage of the test suite is at 57.6%
Get the untaint functionality tested thoroughly, that would bring the coverage to 100%, the "match_valid_postalcode" does not seem to be run.
Comply with Data::FormValidator, especially for untainting
Data::FormValidator::Constraints
Data::FormValidator::Result
Data::FormValidator::Constraints::Business::DK::CVR
Data::FormValidator::Constraints::Business::DK::CPR
Data::FormValidator::Constraints::Business::DK::FI
Data::FormValidator::Constraints::Business::DK::PO
Data::FormValidator::Constraints::Business::DK::Phonenumber
Please report issues via CPAN RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-DK-Postalcode
or by sending mail to
bug-Business-DK-Postalcode@rt.cpan.org
Jonas B. Nielsen, (jonasbn) - <jonasbn@cpan.org>
<jonasbn@cpan.org>
Data::FormValidator::Constraints::Business::DK::Postalcode is (C) by Jonas B. Nielsen, (jonasbn) 2006-2012
Business-DK-Postalcode and related is released under the Artistic License 2.0
http://www.opensource.org/licenses/Artistic-2.0
To install Business::DK::Postalcode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::DK::Postalcode
CPAN shell
perl -MCPAN -e shell install Business::DK::Postalcode
For more information on module installation, please visit the detailed CPAN module installation guide.