Business::IS::PIN

Validate and process Icelandic PIN numbers
Download

Business::IS::PIN Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • ?var Arnfj?r? Bjarmason
  • Publisher web site:
  • http://search.cpan.org/~avar/

Business::IS::PIN Tags


Business::IS::PIN Description

Validate and process Icelandic PIN numbers Business::IS::PIN is a Perl module to validate and process Icelandic PIN numbers (Icelandic: kennit?lur).SYNOPSIS # Functional interface use Business::IS::PIN qw(:all); my $kt = '0902862349'; # Yours truly if (valid $kt) { # Extract YYYY-MM-DD my $year = year $kt; my $month = month $kt my $day = day $kt; # ... } # OO interface that doesn't pollute your namespace use Business::IS::PIN; my $kt = Business::IS::PIN->new('0902862349'); if ($kt->valid and $kt->person) { printf "You are a Real Boy(TM) born on %d-%d-%d ", $kt->year, $kt->month, $kt->day; } elsif ($kt->valid and $kt->company) { warn "Begone, you spawn of capitalism!"; } else { die "EEEK!"; }This module provides an interface for validating the syntax of and extracting information from Icelandic personal identification numbers (Icelandic: kennitala). These are unique 10-digit numbers assigned to all Icelandic citizens, foreign citizens with permanent residence and corporations (albeit with a slightly different format, see below). Requirements: · Perl


Business::IS::PIN Related Software