The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package BadSigDie;

use strict;
use warnings;

# make sure this gets loaded before the compile
BEGIN {
    $SIG{__DIE__} = sub { 
        my $error = shift;
        CORE::die($error) if $error =~ /syntax error/i;
        return 'bad sig die';
    };
}

# Unmatched right curly
}

1;