Adriano Ferreira > Business-BR-Ids > Business::BR::IE

Download:
Business-BR-Ids-0.0022.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.0022   Source  

NAME ^

Business::BR::IE - Perl module to test for correct IE numbers

SYNOPSIS ^

  use Business::BR::IE qw(test_ie canon_ie format_ie random_ie); 

  test_ie('sp', '110.042.490.114') # 1
  test_ie('pr', '123.45678-50') # 1
  test_ie('ac', '01.004.823/001-12') # 1
  test_ie('al', '24.000.004-8') # 1
  test_ie('am', '04.117.161-6') # 1
  test_ie('ba', '123456-63') # 1
  test_ie('ma', '12.000.038-5') # 1
  test_ie('mg', '062.307.904/0081') #1
  test_ie('rr', '24.006.628-1') # 1
  test_ie('ap', '03.012.345-9') # 1

DESCRIPTION ^

YET TO COME. Handles IE for the states of Acre (AC), Alagoas (AL), Amapá (AP), Amazonas (AM), Bahia (BA), Maranhão (MA), Minas Gerais (MG), Paraná (PR), Rondônia (RO), Roraima (RR) and Sao Paulo (SP) by now.

EXPORT

test_ie is exported by default. canon_ie, format_ie, random_ie and parse_ie can be exported on demand.

DETAILS ^

Each state has its own rules for IE numbers. In this section, we gloss over each one of these

AC

The state of Acre uses:

AL

The state of Alagoas uses:

AM

The state of Amazonas uses:

BA

The state of Bahia uses:

MA

The state of Maranhão uses:

MG

The state of Minas Gerais uses:

PR

The state of Paraná uses:

RO

The state of Rondônia uses:

RR

The state of Roraima uses:

SP

The state of São Paulo uses:

BUGS ^

SEE ALSO ^

Please reports bugs via CPAN RT, http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-BR-Ids By doing so, the author will receive your reports and patches, as well as the problem and solutions will be documented.

AUTHOR ^

A. R. Ferreira, <ferreira@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2005-2007 by A. R. Ferreira

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: