Business::BR::Ids - Modules for dealing with Brazilian identification codes (CPF, CNPJ, ...)
use Business::BR::Ids; my $cpf = '390.533.447-05'; print "ok as CPF" if test('cpf', $cpf); my $cnpj = '90.117.749/7654-80'; print "ok as CNPJ" if test('cnpj', $cnpj);
This is a generic module for handling the various supported operations on Brazilian identification numbers and codes. For example, it is capable to test the correctness of CPF and CNPJ numbers without the need for explicitly 'requiring' or 'using' this modules (doing it automatically on demand).
test($entity_type, @args); test('cpf', $cpf); # the same as "require Business::BR::CPF; Business::BR::CPF::test_cpf($cpf)"
Tests for correct inputs of ids which have a corresponding Business::BR module. For now, the supported id types are 'cpf' and 'cnpj'.
test is exported by default.
test
Please reports bugs via CPAN RT, http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-BR-Ids
A. R. Ferreira, <ferreira@cpan.org>
Copyright (C) 2005 by A. R. Ferreira
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
To install Business::BR::Ids, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::BR::Ids
CPAN shell
perl -MCPAN -e shell install Business::BR::Ids
For more information on module installation, please visit the detailed CPAN module installation guide.