Calling param with no arguments will return a list of all of the CGI arguments. You can therefore do something like this:
--use CGI qw(:standard); my %form; foreach (param) { my @args = param($_); if (@args == 1) { $form{$_} = $args[0]; } else { $form{$_} = [@args]; } }
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: (Ovid -- bug in your hand-rolled CGI code) Re: Pushing w/ an associative array?
by davorg
in thread Pushing w/ an associative array?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |