|
Business::SEDOL - Verify Stock Exchange Daily Official List Numbers |
Business::SEDOL - Verify Stock Exchange Daily Official List Numbers
use Business::SEDOL;
$sdl = Business::SEDOL->new('0325015');
print "Looks good.\n" if $sdl->is_valid;
$sdl = Business::SEDOL->new('0123457');
$chk = $sdl->check_digit;
$sdl->sedol($sdl->sedol.$chk);
print $sdl->is_valid ? "Looks good." : "Invalid: ", $sdl->error, "\n";
This module verifies SEDOLs, which are British securities identification codes. This module cannot tell if a SEDOL references a real security, but it can tell you if the given SEDOL is properly formatted. It handles both the old-style SEDOLs (SEDOLs issued prior to 26 January 2004) and new-style SEDOLs.
new([SEDOL_NUMBER])sedol([SEDOL_NUMBER])series()is_valid()error()is_valid()) it returns the reason it is
not valid. Otherwise returns undef.
check_digit()
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.
|
Business::SEDOL - Verify Stock Exchange Daily Official List Numbers |