- or download this
split up query string and decode pairs into $val and $key
insert $key into params hash with value $val
- or download this
foo.cgi?foo=mashed&foo=fried&foo=boiled&foo=tofu
- or download this
if (defined $params{$key} && ref($params{$key}) eq "ARRAY") {
...
# assign the value as a scalar
$params{$key} = $val;
}