in reply to goto in CORE::GLOBAL::exit - is it safe?
BEGIN { # Override with itself so it can be overridden at run-time later. *CORE::GLOBAL::exit = sub { CORE::exit @_; } } { my $exit_code; no warnings 'redefine'; local *CORE::GLOBAL::exit = sub { $exit_code = shift; goto EXIT; }; # ...do code which calls abort handler... EXIT: $CGI::Fast::Ext_Request->Finish(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: goto in CORE::GLOBAL::exit - is it safe?
by powerman (Friar) on Aug 30, 2007 at 16:15 UTC | |
by SFLEX (Chaplain) on Aug 30, 2007 at 16:22 UTC | |
by powerman (Friar) on Aug 30, 2007 at 16:41 UTC | |
by SFLEX (Chaplain) on Aug 30, 2007 at 17:12 UTC |