diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-08 18:28:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-08 18:28:13 +0000 |
commit | 91e74348ab129f737e0d9da75481cd4eb7414ba4 (patch) | |
tree | b700d3ed7ddb36fb2d15c007f31f5bd0346d8418 /lib/CGI.pm | |
parent | 1426bbf4b7d39af0f80ec0afcb4869d2bc3f0a90 (diff) | |
download | perl-91e74348ab129f737e0d9da75481cd4eb7414ba4.tar.gz |
Do away with array context, from Daniel Chetlin <daniel@chetlin.com>
(either perlbug or p5p ate the original), plus regen
perlapi and perltoc.
p4raw-id: //depot/perl@6553
Diffstat (limited to 'lib/CGI.pm')
-rw-r--r-- | lib/CGI.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CGI.pm b/lib/CGI.pm index 63805544f8..8b7568af8a 100644 --- a/lib/CGI.pm +++ b/lib/CGI.pm @@ -3678,13 +3678,13 @@ the keys are the names of the CGI parameters, and the values are the parameters' values. The Vars() method does this. Called in a scalar context, it returns the parameter list as a tied hash reference. Changing a key changes the value of the parameter in the underlying -CGI parameter list. Called in an array context, it returns the +CGI parameter list. Called in a list context, it returns the parameter list as an ordinary hash. This allows you to read the contents of the parameter list, but not to change it. When using this, the thing you must watch out for are multivalued CGI parameters. Because a hash cannot distinguish between scalar and -array context, multivalued parameters will be returned as a packed +list context, multivalued parameters will be returned as a packed string, separated by the "\0" (null) character. You must split this packed string in order to get at the individual values. This is the convention introduced long ago by Steve Brenner in his cgi-lib.pl |