Brazilian::FederalDocuments
Warning
This module was created for a presentation in the Guru-SP group:
https://www.youtube.com/watch?v=Kgy7Qa7LgGs
Synopsis
use Brazilian::FederalDocuments;
if FederalDocuments::CPF(number => 6931987887).is-valid {
say "Valid CPF!!!"
} else {
say "Invalid CPF..."
}
if FederalDocuments::CNPJ(number => 394411000109).is-valid {
say "Valid CNPF!!!"
} else {
say "Invalid CNPF..."
}
Description
In Brazil, there are two numbers of documents used especially for financial
transactions. For individuals, the CPF (Individual Persons Registry), and for
companies, the CNPJ (National Registry of Legal Entities).
This module verifies that the numbers are valid.
COPYRIGHT
This library is free software; you can redistribute it and/or modify it under
the terms of the MIT License.