CGI-Minimal
view release on metacpan or search on metacpan
lib/CGI/Minimal.pod view on Meta::CPAN
exit;
}
my $form_field_value = $cgi->param('some_field_name');
=head1 DESCRIPTION
Provides a micro-weight alternative to the CGI.pm module
Rather than attempt to address every possible need of a CGI
programmer, it provides the _minimum_ functions needed for CGI such
as form decoding (including file upload forms), URL encoding
and decoding, HTTP usable date generation (RFC1123 compliant
dates) and I<basic> escaping and unescaping of HTMLized text.
The ':preload' use time option is used to force all sub-component
modules to load at compile time. It is not required for
operation. It is solely a performance optimization for particular
configurations. When used, it preloads the 'dehtmlize',' param_mime',
'param_filename', 'date_rfc1123', 'url_decode', 'calling_parms_table'
and parameter setting supporting code. Those code sections
are normally loaded automatically the first time they are needed.
lib/CGI/Minimal.pod view on Meta::CPAN
=back
=cut
=over 4
=item truncated;
Returns '1' if the read form was shorter than the
Content-Length that was specified by the submitting
user agent (ie the data from a form uploaded by a
web browser was cut off before all the data was received).
Returns '0' if the form was NOT truncated.
Example:
use CGI::Minimal;
my $cgi = CGI::Minimal->new;
if ($cgi->truncated) {
&bad_form_upload;
} else {
&good_form_upload;
}
'truncated' will also return '1' if the form length
received would have exceeded the set 'max_read_length'.
=back
=cut
=head1 STATIC METHODS
( run in 1.780 second using v1.01-cache-2.11-cpan-b16cb0d3907 )