No such thing as a small change | |
PerlMonks |
Re: goto in CORE::GLOBAL::exit - is it safe?by sgt (Deacon) |
on Aug 30, 2007 at 15:40 UTC ( [id://636119]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|