http://www.perlmonks.org?node_id=659274


in reply to Can I call a CGI from another CGI?

You have some options. If the CGI script lives on the same machine, then you can call it directly using system() or `...`. It would be even nicer if the script could be refactored into a module/script combo, then you can "use" it and just call functions or methods. If the CGI is on another host or must be called via HTTP, then you can use LWP::UserAgent.