in reply to Mailing unescaped CGI parameters
Alright, since you are using the function oriented interface, you need to import the :cgi-lib set of function calls, to use the Vars() function, which will return the params as a hash, multivalued fields being delimited by a "\0" (null) character.
Cheers,use CGI qw(:cgi-lib); %params = Vars(); foreach $member (key %params) { print "$member = "; @values = split /\0/, $params{$member}; print "@values\n"; }
|
|---|