After an email discussion with Kim Ryan, author of Locale::SubCountry, and a recent exchange on this very blog, about removing Locale::Country::SubCountry from CPAN, I've released WWW::Scraper::Wikipedia::ISO3166 V 1.01.
It's main purpose is to ship a SQLite database of countries and subcountries, and an interface to that db.
The db can be used directly, or exported as CSV or HTML.
Pre-exported files are shipped in the distro as data/*.csv and data/*.html.
The HTML looks like this.
The Wikipedia files I downloaded are also shipped in the distro under data/*.html, to encourage you to access them locally if playing with the code, rather than hitting Wikipedia itself repeatedly.
If you think this makes the distro too big (4Mb) let me know. I can easily drop the those files.