5 @INC = ('../lib', 'lib');
10 use Test::More tests => 9;
12 use mypragma (); # don't enable this pragma yet
15 is($^H{mypragma}, undef, "Shouldn't be in %^H yet");
18 is(mypragma::in_effect(), undef, "pragma not in effect yet");
20 is(mypragma::in_effect(), undef, "pragma not in effect yet");
21 eval qq{is(mypragma::in_effect(), undef, "pragma not in effect yet"); 1}
25 is(mypragma::in_effect(), 1, "pragma is in effect within this block");
26 eval qq{is(mypragma::in_effect(), 1,
27 "pragma is in effect within this eval"); 1} or die $@;
29 is(mypragma::in_effect(), undef, "pragma no longer in effect");
30 eval qq{is(mypragma::in_effect(), undef, "pragma not in effect"); 1} or die $@;
34 is($^H{mypragma}, undef, "Should no longer be in %^H");