The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Geography::JapanesePrefectures::Unicode - Japanese Prefectures Data.

SYNOPSIS

    use Geography::JapanesePrefectures::Unicode;

    Geography::JapanesePrefectures::Unicode->prefectures_in('関東');
    # => qw(茨城県 栃木県 群馬県 埼玉県 千葉県 東京都 神奈川県 山梨県)
    
    Geography::JapanesePrefectures::Unicode->prefectures_id('東京');
    # => 13

DESCRIPTION

This module allows you to get information on Japanese Prefectures names. and region.

Class Methods

prefectures

    my @prefectures = Geography::JapanesePrefectures::Unicode->prefectures;

get the prefectures names.

regions

    my @regions = Geography::JapanesePrefectures::Unicode->regions;

get the region names.

prefectures_in

    my @prefectures = Geography::JapanesePrefectures::Unicode->prefectures_in('関東');
    # => qw(茨城県 栃木県 群馬県 埼玉県 千葉県 東京都 神奈川県 山梨県)

get prefectures in region.

prefectures_id

    Geography::JapanesePrefectures::Unicode->prefectures_id('和歌山県');
    # => 30

get prefecture's ID.

prefectures_infos

    Geography::JapanesePrefectures::Unicode->prefectures_infos();
    # => [ { id => 1,  name => '北海道',    region => '北海道' }, ... ]

get all informations.

THANKS TO

    Tatsuhiko Miyagawa
    Yappo
    nipotan
    Shot(for greeting)
    nekokak
    lopnor

AUTHOR

Tokuhiro Matsuno <tokuhirom@gmail.com>

SEE ALSO

http://ja.wikipedia.org/wiki/JIS_X_0401#.E9.83.BD.E9.81.93.E5.BA.9C.E7.9C.8C.E3.82.B3.E3.83.BC.E3.83.89

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.