ITYM "almost always exits (unless someone's done some really evil monkeying around behind your back)" . . .
use strict; use warnings; BEGIN { *CORE::GLOBAL::exit = sub { print "You'll never take me alive, + copper!\n"; }; } eval { die }; print "You can see I'm still alive!\n"; eval { exit }; print "You should never see this print\n"; eval { CORE::exit }; print "Now this you won't get to see\n";
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re^2: different between die and exit
by Fletch
in thread different between die and exit
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |