my $Is_EBCDIC = (ord('A') == 193) ? 1 : 0;
my $Is_UTF8 = (${^OPEN} || "") =~ /:utf8/;
-my $total_tests = 48;
+my $total_tests = 49;
if ($Is_EBCDIC || $Is_UTF8) { $total_tests -= 3; }
print "1..$total_tests\n";
# Test that scalar context is forced for require
write_file('bleah.pm', <<'**BLEAH**'
+my $TODO = $i == 38 ? " # TODO " : "";
print "not " if !defined wantarray || wantarray ne '';
-print "ok $i - require() context\n";
+print "ok $i - require() context $TODO\n";
1;
**BLEAH**
);
@foo = eval q{require bleah}; delete $INC{"bleah.pm"}; ++$::i;
eval q{require bleah}; delete $INC{"bleah.pm"}; ++$::i;
eval q{$_=$_+2;require bleah}; delete $INC{"bleah.pm"}; ++$::i;
+ eval q{return require bleah}; delete $INC{"bleah.pm"}; ++$::i;
$foo = eval {require bleah}; delete $INC{"bleah.pm"}; ++$::i;
@foo = eval {require bleah}; delete $INC{"bleah.pm"}; ++$::i;
eval {require bleah};