Okay, this is probably a really simple question but heres what I'm doing. I'm writing a script that will parse a form using cgi.pm (first time using cgi.pm to parse a form, don't laugh). What I would like to do is filter out ceratin characters from all fields. The only way I can get this to work now is something like
$cgi->param('field1') =~ s/[\*]//g;
$cgi->param('field2') =~ s/[\*]//g;
....and so on.
Isn't there a way to do this with one line of code?
$cgi->param('field1') =~ s/[\*]//g;
$cgi->param('field2') =~ s/[\*]//g;
....and so on.
Isn't there a way to do this with one line of code?