|
Business::CINS - Verify CUSIP International Numbering System Numbers |
Business::CINS - Verify CUSIP International Numbering System Numbers
use Business::CINS;
$cn = Business::CINS->new('035231AH2');
print "Looks good.\n" if $cn->is_valid;
$cn = Business::CINS->new('392690QT', 1);
$chk = $cn->check_digit;
$cn->cins($cn->cins.$chk);
print $cn->is_valid ? "Looks good." : "Invalid: ", $cn->error, "\n";
This module verifies CINSes, which are financial identifiers issued by the Standard & Poor's Company for US and Canadian securities. This module cannot tell if a CINS references a real security, but it can tell you if the given CINS is properly formatted.
cins([CINS_NUMBER])is_fixed_income([TRUE_OR_FALSE])issuer_num()issuer_num()is_valid()error()is_valid()) it returns the reason it is
Not valid. Otherwise returns undef.
check_digit()domicile_descr([CODE])A = Austria J = Japan S = South Africa B = Belgium K = Denmark T = Italy C = Canada L = Luxembourg U = United States D = Germany M = Mid-East V = Africa - Other E = Spain N = Netherlands W = Sweden F = France P = South America X = Europe-Other G = United Kingdom Q = Australia Y = Asia H = Switzerland R = Norway
If no CODE is given, it will return the hash of codes.
This module uses the Algorithm::LUHN module and it adds characters to the
valid_chars map of Algorithm::LUHN. So if you rely on the default valid
map in the same program you use Business::CINS you might be surprised.
This module was written by Tim Ayers (http://search.cpan.org/search?author=TAYERS).
Copyright (c) 2001 Tim Ayers. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
General information about CINS can be found at http://http://www.cusip.com/cusip/intrnal.html.
|
Business::CINS - Verify CUSIP International Numbering System Numbers |