Help for this page

Select Code to Download


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