Does login.pl need to be another CGI script? Why not just write a module to handle your login functions?
exec causes your script to time out because it never returns. You should be able to execute the other script with system, but it's going to spit its data to STDOUT. You can capture that using something like IPC::Open3, but it hardly seems worth the trouble.
In reply to Re: How to call perl CGI script from another perl CGI script
by friedo
in thread How to call perl CGI script from another perl CGI script
by Calm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |