|
|
Libraries for CGI Form Handling in Perl
The cgi-lib.pl library has become the de facto
standard library for creating
Common Gateway Interface (CGI)
scripts in the Perl language.
The cgi-lib.pl library makes CGI scripting in Perl easy enough for
anyone to process forms and create dynamic Web content.
The library has the following features:
- Extremely simple to learn and easy to use
- Designed for operation under Perl5 and Perl4
- Very efficient
- Compatibility with all CGI interactions, including File Upload
- Convenient utility functions
- Compatible with Perl5 security features such as taint, warnings,
(command line options -Tw) and use strict;
- Debugging facilities
- Good starting point for migration to more sophisticated libraries
perl 5 library uses objects to create Web
fill-out forms on the fly and to parse their contents.
It is similar to
cgi-lib.pl
in some respects.
It provides a simple
interface for parsing and interpreting query strings passed to CGI
scripts.
However,
it also offers a rich set of functions for creating
fill-out forms.
Instead of remembering the syntax for HTML form
elements,
you just make a series of perl function calls.
An important
fringe benefit of this is that the value of the previous query is used
to initialize the form,
so that the state of the form is preserved
from invocation to invocation.
|
|