The relevant line, with comment, is:
my @a; # magic guard for scope violations (must be first lexical in file)
push @INC, '../lib';
}
+sub do_require {
+ %INC = ();
+ write_file('bleah.pm',@_);
+ eval { require "bleah.pm" };
+ my @a; # magic guard for scope violations (must be first lexical in file)
+}
+
# don't make this lexical
$i = 1;
if ($Is_EBCDIC || $Is_UTF8) { $total_tests -= 3; }
print "1..$total_tests\n";
-sub do_require {
- %INC = ();
- write_file('bleah.pm',@_);
- eval { require "bleah.pm" };
- my @a; # magic guard for scope violations (must be first lexical in file)
-}
-
sub write_file {
my $f = shift;
open(REQ,">$f") or die "Can't write '$f': $!";