Asmens::Kodas - Lithuanian personal (passport) number checking


Asmens-Kodas documentation  | view source Contained in the Asmens-Kodas distribution.

Index


NAME

Top

Asmens::Kodas - Lithuanian personal (passport) number checking

SYNOPSIS

Top

     use Asmens::Kodas qw/tikras/;
     print tikras("38208080214") ? "tinka" : "netinka";

DESCRIPTION

Top

This module provides a subroutine that runs a few checks which ensure that Lithuanian personal number (asmens kodas) has a correct checksum and has sane fields.

tikras

This subroutine does the actual checking. It returns 1 if the argument can possibly be a correct Lithuanian personal number. Otherwise it returns 0.

AUTHOR

Top

Petras Kudaras <moxliukas@delfi.lt>


Asmens-Kodas documentation  | view source Contained in the Asmens-Kodas distribution.