Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: goto in CORE::GLOBAL::exit - is it safe?

by SFLEX (Chaplain)
on Aug 30, 2007 at 16:22 UTC ( #636130=note: print w/replies, xml ) Need Help??

in reply to Re^2: goto in CORE::GLOBAL::exit - is it safe?
in thread goto in CORE::GLOBAL::exit - is it safe?

thats the same link i got the code from.

for mod_perl i use this code to exit. * Edited
use subs qw(exit); # this is also part of the exit mod_perl code # if anyone cares # Figure out how to exit mod_perl. *exit = $ENV{'MOD_PERL'} ? \&Apache::exit : sub { CORE::exit };

I was playing with another code like it but that one seemed to work better.

Replies are listed 'Best First'.
Re^4: goto in CORE::GLOBAL::exit - is it safe?
by powerman (Friar) on Aug 30, 2007 at 16:41 UTC
    ... and &Apache::exit internally call die(). And so it fail to "exit" if this code executed inside eval. This is documented issue, you can read about it here.

    I just wonder why not solve this issue by replacing die() with goto()?

      Let me suggest this link

      Now im starting to scratch my head. =D
      and this link maybe of some intrest also.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://636130]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2022-01-28 19:49 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (73 votes). Check out past polls.