Business::FR::SSN - Verify French SSN (Social Security Number / Numéro de Sécurité Sociale)


Business-FR-SSN documentation  | view source Contained in the Business-FR-SSN distribution.

Index


NAME

Top

Business::FR::SSN - Verify French SSN (Social Security Number / Numéro de Sécurité Sociale)

SYNOPSIS

Top

  use Business::FR::SSN;

DESCRIPTION

Top

This module verifies SSN (numéro de sécurité sociale), which are french people identification. This module cannot tell if a SS references a real person, but it can tell you if the given SS is properly formatted.

METHODS

Top

my $obj = Business::FR::SSN->new([$ssn])

The new constructor optionally takes a ss number.

$obj->ssn([$ssn])

if no argument is given, it returns the current ssn number. if an argument is provided, it will set the ssn number and return it.

$obj->is_valid([$ssn])

Returns true if the ssn number is valid.

$obj->get_sex()

Returns 1 for a male, 2 for a female.

$obj->get_birth_year()

Returns the person year of birth.

$obj->get_birth_month()

Returns the person month of birth.

$obj->get_birth_department()

Returns the person department of birth.

REQUESTS & BUGS

Top

Please report any requests, suggestions or bugs via the RT bug-tracking system at http://rt.cpan.org/ or email to bug-Business-FR-SSN\@rt.cpan.org.

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Business-FR-SSN is the RT queue for Business::FR::SSN. Please check to see if your bug has already been reported.

COPYRIGHT

Top

SEE ALSO

Top

perl(1).


Business-FR-SSN documentation  | view source Contained in the Business-FR-SSN distribution.