use CGI; my $cgi = CGI->new; my $file = $cgi->param('file'); my $param1 = $cgi->param('parameter1'); exec($file, $param1);