in reply to croakify non-croakers?
... make my computer blow up?
No, but it would make perl blow up, since a sub needs curlies:
$SIG{__DIE__} = sub { croak(shift) };
But you don't know whether @_ contains anything useful, if set at all, at the moment the die occurs. So you'll probably better off using Carp::confess, as moritz already pointed out.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: croakify non-croakers?
by ambrus (Abbot) on Nov 08, 2007 at 09:07 UTC |