my $cgiprog = '/path/to/filename.cgi'; my $cgiparams = 'action=task1&user=me'; exec( $cgiprog, $cgiparams );