in reply to Re: form parsing
in thread form parsing
can be written as:my %input = map { $_->$cgi->param($_) } $cgi->param();
to fix the possible "multiple value" problem, for some version of "fix". (Your arrow was wrong, by the way.)my %input = map { $_ => scalar $cgi->param($_) } $cgi->param();
can be written as:foreach my $key (keys %input) { $input{$key} =~ tr/*//d; # or whatever makes sense }
for recent versions of Perl.tr/*//d for values %input;
-- Randal L. Schwartz, Perl hacker
|
|---|