NAME

Locale::Country::SubCountry::Database::Import - Country names in English, and subcountry names in native scripts

Synopsis

See Locale::Country::SubCountry.

Description

Locale::Country::SubCountry provides subcountry names in their native scripts.

Methods

init()

For use by subclasses.

Sets default values for object attributes.

insert_hash()

Insert a hashref of data into a given table.

new()

For use by subclasses.

populate_all_tables()

Calls populate_table(...) for both the 'countries' and 'sub_countries' tables.

populate_table($table_name)

Populates the given table with data read from data/$table_name.csv.

read_csv_table($file_name)

Reads a CSV file and returns an arrayref (1 element per line) of hashrefs.

The CSV file must have column headings.

Support

Email the author, or log a bug on RT:

https://rt.cpan.org/Public/Dist/Display.html?Name=Locale::Country::SubCountry.

Author

Locale::Country::SubCountry was written by Ron Savage <ron@savage.net.au> in 2011.

Home page: http://savage.net.au/index.html.

Copyright

Australian copyright (c) 2011, Ron Savage.

All Programs of mine are 'OSI Certified Open Source Software';
you can redistribute them and/or modify them under the terms of
The Artistic License, a copy of which is available at:
http://www.opensource.org/licenses/index.html