LJ::load_codes — Populates hashrefs with lookup data from the database or from memory, if already loaded in the past. Examples of such lookup data include state codes, country codes, color name/value mappings, etc.
LJ::load_codes
(dbarg, whatwhere);
dbarg. Deprecated; a master database handle ($dbh) or a master/slave set of database handles ($dbs).
whatwhere. a hashref with keys being the code types you want to load and their associated values being hashrefs to where you want that data to be populated.
cgi-bin/ljlib.pl