Mohammad S Anwar > Algorithm-SIN-0.08 > Algorithm::SIN

Download:
Algorithm-SIN-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.08   Source  

NAME ^

Algorithm::SIN - Interface to Canada's Social Insurance Number.

VERSION ^

Version 0.08

DESCRIPTION ^

This modules lets you validate Canada's Social Insurance Number. It can also format it.

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

    use strict; use warnings;
    use Algorithm::SIN;

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

format()

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);

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.

syntax highlighting: