maybe I am not answering the question either and I apologize in advance...
Is seems somehow that it would be better to have a function my_exit() that would be able via switch to call normal exit() o fast_cgi_exit() supposing you'd like to test your code in non-CGI env. But then you need to filter all the code to do that. I don't know if it is an option.
looking at your solution with exit, why this goto EXPR, can't you just do ' *CORE::GLOBAL::exit = sub { fast_cgi_exit() }'
cheers --stephan
In reply to Re: goto in CORE::GLOBAL::exit - is it safe?
by sgt
in thread goto in CORE::GLOBAL::exit - is it safe?
by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |