NAME
Business::BR::Ids - Modules for dealing with Brazilian identification codes (CPF, CNPJ, ...)
SYNOPSIS
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);
DESCRIPTION
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
-
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'.
EXPORT
test
is exported by default.
SEE ALSO
Please reports bugs via CPAN RT, http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-BR-Ids
AUTHOR
A. R. Ferreira, <ferreira@cpan.org>
COPYRIGHT AND LICENSE
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:
- Around line 93:
You forgot a '=back' before '=head2'