in reply to Signal (SIGTTIN) in Solaris 8. (code)

The "nicer" solution was to do:
eval { local $SIG{EVILSIG} = sub { die "EVILSIG\n" }; # ... }; die $@ if $@ and $@ ne "EVILSIG\n";


japhy -- Perl and Regex Hacker