- SUBROUTINES AND METHODS
- CONFIGURATION AND ENVIRONMENT
- BUGS AND LIMITATIONS
- TEST AND QUALITY
- SEE ALSO
- BUG REPORTING
Class::Business::DK::CPR - Danish CPR number class
The documentation describes version 0.17 of Class::Business::DK::CPR
use Class::Business::DK::CPR; my $cpr = Class::Business::DK::CPR->new(1501729473);
This is an OOP implementation for handling Danish CPR numbers. The class gives you an CPR object, which is validated according to the CPR specification, see: Business::DK::CPR.
This is the constructor, it takes a single mandatory parameter, which should be a valid CPR number, if the parameter provided is not valid, the constructor dies.
This method/accessor returns the CPR number associated with the object.
Alias for the "get_number" accessor, see above.
This method/mutator sets the a CPR number for a given CPR object, it takes a single mandatory parameter, which should be a valid CPR number, returns true (1) upon success else it dies.
Accessor returning a string representing what algorithms used to validate the CPR object.
Accessor returning an integer representing the gender indicated by the CPR object.
The module requires no special configuration or environment to run.
The module has no known incompatibilities.
The module has no known bugs or limitations
Coverage of the test suite is at 98.3%
Please refer to the TODO file
Please report issue via GitHub
Alternatively report issues via CPAN RT:
or by sending mail to
Jonas B., (jonasbn) -
Business-DK-CPR and related is (C) by Jonas B., (jonasbn) 2006-2020
Business-DK-CPR and related is released under the Artistic License 2.0