Well, if you're going to be that picky, exit isn't the only function that can be overriden.
use strict; use warnings; BEGIN { *CORE::GLOBAL::die = sub { print(STDERR @_); CORE::exit($! || 255); }; } eval { die }; print "You can see I'm still alive!\n"; # Never reached
All bets are off when you start overriding functions, so your nit is pointless.
In reply to Re^3: different between die and exit
by ikegami
in thread different between die and exit
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |