OP *op;
sv = POPs;
- if (SvNIOKp(sv)) {
+ if (SvNIOKp(sv) && PL_op->op_type != OP_DOFILE) {
if (SvPOK(sv) && SvNOK(sv) && SvNV(sv)) { /* require v5.6.1 */
UV rev = 0, ver = 0, sver = 0;
STRLEN len;
return $ok;
}
-print "1..20\n";
+print "1..21\n";
# Test do &sub and proper @_ handling.
$_[0] = 0;
eval qq{ do uc qq(a file that does not exist); };
ok( !$@, "do on a non-existing file, second try" );
+# 6 must be interpreted as a file name here
+ok( (!defined do 6) && $!, "'do 6' : $!" );
+
END {
1 while unlink("$$.16", "$$.17", "$$.18");
}