I am still working on the same script I discussed here: CGI Script backgrounding and the short version of how it works is that I am forking and running the script as a background process in the child while the parent redirects to an auto-refreshing dummy page which is shortly after overwritten.
My current issue is I have two methods of error reporting, and I cannot figure out how to simultaneously support both of them.
Before the fork, I can use CGI::Carp to print error messages to the browser window from which the script was called.
After the fork, the child redirects its STDERR and STDOUT to the dummy HTML file, and errors are reported to that page.
This works wonderfully until Carp tries to report an error to that page. It works, it just looks horribly disgusting.
My question is how can I enable a module such as Carp for part of my main logic and them disable it later on? I tried using "no" to disable Carp in the child but this was unsuccessful.
Thank you for any/all wisdom!
In reply to CGI Error Reporting by agronbach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |