#!./perl
BEGIN {
chdir 't' if -d 't';
}
use strict 'vars';
eval 'use Errno';
print "1..19\n";
my $foo = 'STDOUT';
print $foo "ok 1\n";
print "ok 2\n","ok 3\n","ok 4\n";
print STDOUT "ok 5\n";
print foo "ok 6\n";
printf @a;
$a[1] = 10;
$, = ' ';
$\ = "\n";
print "ok","11";
my @x = ("ok","12\nok","13\nok");
my @y = ("15\nok","16");
print @x,"14\nok",@y;
{
local $\ = "ok 17\n# null =>[\000]\nok 18\n";
print "";
}
$\ = '';
print "ok 19 # skipped: no EBADF\n";
} else {
$! = 0;
print "ok 19\n";
}