The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Algorithm::SIN - A very simple module to validate social insurance number (Canada).

VERSION

Version 0.03

SYNOPSIS

    use Algorithm::SIN;

    my $sin = '046-454-286';
    my $status = Algorithm::SIN::validate($sin);

METHODS

validate

This method accepts Social Insurance number and validate it against the Canada format. For more information please visit http://en.wikipedia.org/wiki/Social_Insurance_Number

format

This method accepts Social Insurance number and returns formatted as three groups of three digits. e.g. 123456789 would become 123-456-789.

AUTHOR

Mohammad S Anwar, <mohammad.anwar at yahoo.com>

BUGS

Please report any bugs or feature requests to bug-algorithm-sin at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Algorithm-SIN. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Algorithm::SIN

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2011 Mohammad S Anwar.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

DISCLAIMER

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.