frankiejol / bussiness--es--nif

Validate Spanish NIF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAME
    Business::ES::NIF - Validate Spanish NIF ( Número de Identificación
    Fiscal )

INSTALATION
    INSTALLATION

    To install this module type the following:

       perl Makefile.PL
       make
       make test
       make install

DEPENDENCIES
    None

SYNOPSIS
      use Business::ES::NIF;

      if (valid_nif($nif)) {
        ...
      }

      print code_nif($dni); # return code character from dni.
                            # Documento Nacional de Identidad

DESCRIPTION
    Validates a nif or returns the character code from a dni.

FUNCTIONS
  valid_nif
    Validates Spanish NIFs. Returns a true value if the validation succeeds,
    a false one otherwise.

      if (valid_nif($nif)) {
        ....
      }

  code_nif
    Returns NIF code from DNI number. ( Documento Nacional de Identidad ).

      my $code = code_nif($dni);

AUTHOR
    Francesc Guasch, <frankie@etsetb.upc.edu>

COPYRIGHT AND LICENSE
    Copyright (C) 2010 by Francesc Guasch

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself, either Perl version 5.10.1 or, at
    your option, any later version of Perl 5 you may have available.

About

Validate Spanish NIF


Languages

Language:Perl 100.0%