in reply to Re^3: Exiting script from subs
in thread Exiting script from subs

You can trap an exit (termination of a script) as well.
END { print "Outside"; } eval { print "Inside\n"; exit; }; print "Outside\n"; ---- Inside Outside
-- gam3
A picture is worth a thousand words, but takes 200K.

Replies are listed 'Best First'.
Re^5: Exiting script from subs
by dragonchild (Archbishop) on Apr 18, 2005 at 12:35 UTC
    That's not trapping an exit. That's trapping the termination of the script. Remove your eval and change your exit to a die and see what happens.