in reply to exec a CGI from within another CGI

I agree with arturo, but I'll answer your question.

You don't want exec. Try:

$return_string = `/path/to/second/2.cgi`; #notice _back_ticks #You can check $return_string for error print $return_string;
There are many threads on using exec() on this site, most of which will say to use backticks or qx().