»

LJ::load_codes

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.

Use

LJ::load_codes(dbarg, whatwhere);

Arguments

  • 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.

Source:

cgi-bin/ljlib.pl