Locale::Country::OFAC - Module to look up OFAC Sanctioned Countries
use strict; use warnings; use Locale::Country; use Locale::Country::OFAC qw( get_sanction_by_code ); my $cuba = country2code('cuba'); get_sanction_by_code($cuba);
Module to lookup if a country is OFAC Sanctioned. Takes a country code and returns a true value if it is.
my $iran = 'IR';
if (get_sanction_by_code($iran) ) { print "Sorry, can't do business- country is Sanctioned\n"; }
Returns 1 if the country is sanctioned, 0 if not. It also accepts lower case and 3 letter country codes.
Daniel 'The Man' Culver
Robert Stone, drzigman@cpan.org
drzigman@cpan.org
Eris Caffee
HostGator
PerlMonks, http://www.perlmonks.com
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Locale::Country::OFAC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Country::OFAC
CPAN shell
perl -MCPAN -e shell install Locale::Country::OFAC
For more information on module installation, please visit the detailed CPAN module installation guide.