make hints test immune to perl -M options
[p5sagit/Eval-WithLexicals.git] / t / lib / get_strictures_hints.pm
CommitLineData
c97f6397 1package get_strictures_hints;
2
3local $ENV{PERL_STRICTURES_EXTRA} = 0;
4our $strictures_hints;
5our $strictures_warn;
6
7eval q{
8 use strictures 1;
9 BEGIN {
10 # Find the hint value that 'use strictures 1' sets on this perl.
11 $strictures_hints = $^H;
12 $strictures_warn = ${^WARNING_BITS};
13 };
14 1;
15} or die $@;
16
17require Exporter;
18*import = \&Exporter::import;
19our @EXPORT = qw($strictures_hints $strictures_warn);
20
211;