After using a form to get some info from the user, the script validates the info. If it's good, then the script prints out an "OK" message. But instead of printing out a message, I want the script to redirect the browser to another page (also a CGI script), and ideally pass along some variables to that script as well.
I've checked the perldocs for CGI.pm and searched the web, including almost every Q&A under CGI here at perlmonks, but I can't find out how to do this. I feel like I'm missing something painfully obvious here. Any ideas?
My best success so far is to use exec() but it always returns me to the first script when I perform any action on the second one, and that's no good.