use CGI ''; my $q = CGI->new(); my $uploaded_file = $q->param('t'); # "t" is the name of the upload field; ...