in reply to How to call perl CGI script from another perl CGI script

All of the responses have been great and I appreciate them all. I've stumbled across another possible way to achieve what I was looking for: URL redirection through the HTML output. Instead of outputting HTML content like this:

print "Content-type: text/html\n\n";

I can do a redirect to another static HTML page or script like this:

print "Location: projectlist.pl\n\n";

It appears that the downside is I'm not doing a POST so I'm not passing any data between the two pages, which means I still need to set a cookie or something to maintain some state information.

Anyway, just another potential option. Now I need to get in the habit of using CGI.pm instead of writing my own HTML...

  • Comment on Re: How to call perl CGI script from another perl CGI script