G
gsa
Hi all,
I have this cgi code that sometimes forks depending on the
size of input. If there is an error, a subroutine called print_error
is called and this subroutine prints an error message and dies. If the
cgi forks and there is a child, then this error message is captured by
an eval statement and is printed to the log file. However, if the cgi
does not fork, there is an ugly software error message on the page. Is
there a way to die so that when the cgi forks, eval captures the error
message but at the same time there is no nasty software error when the
cgi doesn't fork? I guess the easiest way is to turn CGI::Carp off but
is there another way to exit/die?
Thanks a lot!
Gayathri
I have this cgi code that sometimes forks depending on the
size of input. If there is an error, a subroutine called print_error
is called and this subroutine prints an error message and dies. If the
cgi forks and there is a child, then this error message is captured by
an eval statement and is printed to the log file. However, if the cgi
does not fork, there is an ugly software error message on the page. Is
there a way to die so that when the cgi forks, eval captures the error
message but at the same time there is no nasty software error when the
cgi doesn't fork? I guess the easiest way is to turn CGI::Carp off but
is there another way to exit/die?
Thanks a lot!
Gayathri