iso2country.pl
- Name
- iso2country.pl
- Author
- Yuuichirou Oka (oka@a-f.jp)
- Copyright
- (c)2003-2004 Yuuichirou Oka
- This script can
- ISO 3166 2文字国別コードから国名を返すこと
- Get country name from ISO 3166-1 2-letter country code.
- Download
- iso2country.pl
- pod2html (with ActivePerl 808)
- pod.html
- License
- GNU General Public License
- History
- Jun/13/2004
- åland Islands(AX)を追加 (ISO 3166-1 NEWSLETTER No. V-10)
- Add åland Islands(AX)
- Jan/04/2004
- ライセンスをGNU GPLに変更。
- Make this script under the GNU GPL.
- Jan/01/2004
- Comoros の正式国名変更に対応
- Serbia and Montenegro (Former Yugoslavia) の正式国名およびコード変更に対応
- Changed Official Name of Comoros
- Changed Official Name and Code for Serbia and Montenegro (Former Yugoslavia)
- May/17/2003
- East Timor の正式国名変更に対応
- Changed Official Name of East Timor
- Jan/14/2003
- Initial Version
使い方
#!/usr/local/bin/perl
require 'iso2country.pl';
. . .
$country_name = $iso2country{"jp"};
# $country_name is "Japan"
. . .
$country_name = $iso2country{"us"};
# $country_name is "United States"
. . .
$country_name = $iso2country{"uk"};
# $country_name is "United Kingdom" # Exceptional Case. Country Code for UK is "gb" in ISO 3166.
. . .
To Do
TOP / Domains / iso2country
Copyright (c)2003-2004 Yuuichirou Oka
All right reserved. International copyright secured.