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

use strict;
use warnings;

our $test;

# 0 for failure if the key has leaked
# 1 for success if it hasn't
BEGIN { $test = exists($^H{'Devel::Pragma::Test'}) ? 0 : 1 }

sub test() { $test }

1;