in reply to How to run a Perl script from another script?
I am a little unclear on what exactly you want here. You speak of executing a script form another script, but you also make reference to "redirecting" to a script from another CGI. If you want to redirect to one CGI from another, and the only limiting factor is that the first CGI needs to set a cookie, a single header can both set a cookie and perform a redirect. If there is some significant reason that you must first print the header (containing the cookie) and later do a redirect, a simple javascript window.location = 'url_for_new_cgi'; could serve your purpose.
|
|---|