NAME

Sisimai::ISO3166 - Look up the country code data

SYNOPSIS

use Sisimai::ISO3166;
print Sisimai::ISO3166->get('jp');    # JP

DESCRIPTION

Sisimai::ISO3166 returns ISO-3166 data: Short name, Alpha-2 code, Alpha-3 code, and Numeric code looked up from ccTLD string as the first argument of get() method.

CLASS METHODS

get( ccTLD [, type] )

get() returns a Short name or Alpha-2 code, or Alpha-3 code, or Numeric code of ISO-3166.

print Sisimai::ISO3166->get('jp','aplha-3');    # JPN
print Sisimai::ISO3166->get('us','shortname');  # United States

AUTHOR

azumakuniyuki

COPYRIGHT

Copyright (C) 2014 azumakuniyuki <perl.org@azumakuniyuki.org>, All Rights Reserved.

LICENSE

This software is distributed under The BSD 2-Clause License.