--On Montag, 19. November 2001 21:09 -0500 "Scott R. Godin" 
<[EMAIL PROTECTED]> wrote:

># !/usr/bin/perl -w
> use strict;
> use CGI 2.78 qw(:standard :cgi-lib -no_xhtml);
># if this errors, remove the 2.78
># what version of CGI.pm does your server have?
> print $CGI::VERSION, " CGI.pm installed\n";
> my $q = new CGI;
> my $in = $q->Vars;# reference to hash
>
> print "Param 'foo' is ", $in->{'foo'}, "\n";
> print "Multivalued param 'bar' contains ";
> my @bar = split("\0", $in->{'bar'});
> print join "\n\t", @bar;
> print "\n";
> print "Param 'baz' ", defined(param('baz'))
>        ? " is ", $in->{'baz'}, "\n"
>        : " is undefined\n";
>
Sorry for being stubborn, but I' like to decode multivalued parameters 
*without* identifying them by name.
That's precisely why reading multiple values into an array is not 
applicable.

Is it possible that, when I do "my %in = $q->Vars" (should be "%in", not 
"$in", shouldn't it?), %in contains not the actual names and values, but 
only references, and that that's why any subsequent attempts at deleting 
key/value-paris are unsuccessful?

Birgit Kellner






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to