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

use Test::More tests => 2;
use Test::NoWarnings;

my $exit_chained;

sub CORE::GLOBAL::exit (;$) {
    $exit_chained = 1;
}

use CGI::Compile;

eval "exit";

is $exit_chained, 1, 'exit chained to CORE::GLOBAL::exit';