An excellent Perl script designed to be included into most other Perl scripts that accept inputted data. Designed and written by Steven Brenner (originally), takes incoming data from a web form or other source, and parses and sorts it into an incoming hashed array, usually entitled %in. Programmers can then access each incoming element of %in by using the syntax $in{'variable_name'}.

Use of cgi-lib is not recommended for use with Perl variants, such as Perl-Ex, also known as PLEX. The reason for this is because the localization of variables in PLEX is a necessity, due to it's run-time allocation of variables and their values. PLEX stores these, and does not reinitialize them each time a PLEX script is run; it keeps the values in resident memory. Therefore, cgi-lib is rendered somewhat useless.