in reply to Calling subroutine with exec() in .cgi script

What are you trying to do? One CGI script calling another through an exec() is pretty odd.

Is this something that you can do with an internal redirect? The first script outputs a redirection header with a relative path. The server picks that up and handles the rest for you and it only looks like one request to the client.

use CGI; my $cgi = CGI->new; $cgi->redirect( "/filename.cgi?action=task1" );
--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review