Don't "call" other cgi's from a cgi ... whatever you mean by "call"
using system or exec to call other cgis is a fudgy idea,
fudgy , unless you're clever enough to write your cgis to take @ARGs, but then if you did that you wouldn't call them cgis :) and you'd be clever enough to use Capture::Tiny to capture anything your cgi prints on STDERR or STDOUT
but if you wrote both programs, and the second is really just a part of the first, then yeah, it shouldn't exist, it should be part of your module ... yeah, your real cgi should be
#!/usr/bin/perl -- ... use MyModule; MyModuule::DoTheCgiDance();
If you still need the "other" then you can have that one too
#!/usr/bin/perl -- ... use MyModule; MyModuule::DoTheCgiDanceOTHER();
:)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: cgi page calling another cgi when submitting form but does not returns error only to web server log and not to browser.
by chidori (Novice) on Jul 01, 2014 at 16:40 UTC | |