10 fresh_perl_is('$_ = qq{OK\n}; print;', "OK\n", {},
11 'print without arguments outputs $_');
12 fresh_perl_is('$_ = qq{OK\n}; print STDOUT;', "OK\n", {},
13 'print with only a filehandle outputs $_');
15 skip_if_miniperl('no dynamic loading of PerlIO::scalar in miniperl');
17 fresh_perl_is(<<'EOF', "\xC1\xAF\xC1\xAF\xC1\xB0\xC1\xB3", {}, "print doesn't launder utf8 overlongs");
23 # These form overlong "oops"
24 open my $fh, "<:utf8", \"\xC1\xAF\xC1\xAF\xC1\xB0\xC1\xB3"
25 or die "Could not open\n";
26 read($fh, my $s, 10) or die "Could not read\n";
31 fresh_perl_is(<<'EOF', "\x76\x41\x76\x41\x77\x42\x77\x43", {}, "print doesn't launder utf8 overlongs");
37 # These form overlong "oops"
38 open my $fh, "<:utf8", \"\x76\x41\x76\x41\x77\x42\x77\x43"
39 or die "Could not open\n";
40 read($fh, my $s, 10) or die "Could not read\n";