use CGI; my $cgi = CGI->new; my $file = $cgi->param('file');