CGI
view release on metacpan or search on metacpan
7. Empty name/values pairs are now properly saved and restored from filehandles. Thanks to rlucas and
Rhesa Rozendaal (RT#13158)
8. Some differences between startform() and start_form() have been fixed. Thanks to Slaven Rezic and
Shawn Corey. (RT#22046)
9. url_param() has been updated to be more consistent with the documentation and param().
Thanks to Britton Kerin and Yanick Campoux. (RT#43587)
10.hidden() now correctly supports multiple default values.
Thanks to david@dierauer.net and Russell Jenkins. (RT#20436)
11.Calling CGI->new() no longer clobbers the value of $_ in the current scope.
Thanks to Alexey Tourbin, Bob Kuo and Mark Stosberg. (RT#25131)
12.UTF-8 params should not get double-decoded now.
Thanks to Yves, Bodo, Burak G�rsoy, and Michael Schout. (RT#19913)
13.We now give objects passed to CGI::Carp::die a chance to be stringified.
Thanks to teek and Yanick Champoux (RT#41530)
14.Turning off autoEscape() now only affects the behavior of built-in HTML
generation fuctions. Explicit calls to escapeHTML() always escape HTML regardless
of the setting. Thanks to vindex, Bob Kuo and Mark Stosberg (RT#40748)
15.In CGI::Fast, preferences set via pragmas are now preserved.
Thanks to heinst and Mark Stosberg (RT#32119)
[DOCUMENTATION]
the problem.
# MODULE FLAGS
There are a number of global module flags which affect how CGI.pm operates.
- **$CGI::APPEND\_QUERY\_STRING**
If set to a non-zero value, this will add query string parameters to a POST
forms parameters hence allowing _param()_ to return values from the query
string as well as from the decoded POST request instead of having to use
_url\_param_ instead. This makes it easier to get the value of a parameter
when you don't know the source.
# COMPATIBILITY WITH CGI-LIB.PL
To make it easier to port existing programs that use cgi-lib.pl the
compatibility routine "ReadParse" is provided. Porting is simple:
OLD VERSION
lib/CGI.pod view on Meta::CPAN
=head1 MODULE FLAGS
There are a number of global module flags which affect how CGI.pm operates.
=over 4
=item B<$CGI::APPEND_QUERY_STRING>
If set to a non-zero value, this will add query string parameters to a POST
forms parameters hence allowing I<param()> to return values from the query
string as well as from the decoded POST request instead of having to use
I<url_param> instead. This makes it easier to get the value of a parameter
when you don't know the source.
=back
=head1 COMPATIBILITY WITH CGI-LIB.PL
To make it easier to port existing programs that use cgi-lib.pl the
compatibility routine "ReadParse" is provided. Porting is simple:
$q->param(data => $data);
# if param() runs the data through Encode::decode(), this will fail.
is $q->param('data'), $data;
# make sure setting bytes decodes properly
my $bytes = Encode::encode(utf8 => $data);
ok !Encode::is_utf8($bytes), "converted UTF-8 to bytes";
$q->param(data => $bytes);
is $q->param('data'), $data;
ok Encode::is_utf8($q->param('data')), 'param() decoded UTF-8';
( run in 0.682 second using v1.01-cache-2.11-cpan-26ccb49234f )