in reply to How do I get at the parameters in my CGI program?

I really like this one:

use CGI; my $q = new CGI; my %in = map { $_ => $q->param($_) } $q->param;

Replies are listed 'Best First'.
RE: Answer: How do I get at the parameters in my CGI program?
by chromatic (Archbishop) on Nov 12, 2000 at 10:28 UTC
    Unfortunately, this fails when a single parameter name has multiple values, as in the case of a multiple selection box.

    That's not encountered often, but the failure when it is is spectacular enough that it bears mention.

      It shows up whenever you use checkboxes. I'd say that's pretty often!