in reply to Re: Running multiple CGI programs
in thread Running multiple CGI programs

Thanks for the further explanation. It sounds like you have a problem with mixing interface and implementation. One of my preferred ways to design CGI programs is to have a module that implements the actual functionality and then a CGI front-end that calls that module. If you write your code this way, it's trivial to write a command-line front-end for the module when you need it or to simply call it from another module.

If you can't deal with that right now and you want a quick and dirty solution, the simplest approach is to use LWP to make additional calls to the server and run the other CGIs. You could simulate a CGI environment by setting environment variables and executing the other programs, but if speed is not an issue there's no reason to do the additional work.