Algorithm::SIN - Interface to Canada's Social Insurance Number.
This modules lets you validate Canada's Social Insurance Number. It can also format it.
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
use strict; use warnings; use Algorithm::SIN; my $sin = '046-454-286'; my $status = Algorithm::SIN::validate($sin);
This method accepts Social Insurance Number and returns formatted as three groups of three digits. e.g. 123456789 would become 123-456-789.
use strict; use warnings; use Algorithm::SIN; my ($sin); $sin = '123456789'; $sin = Algorithm::SIN::format($sin);
Mohammad S Anwar,
<mohammad.anwar at yahoo.com>
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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
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.
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.