3 # $Header: op.read,v 3.0 89/10/18 15:30:58 lwall Locked $
8 open(FOO,'op.read') || open(FOO,'t/op.read') || die "Can't open op.read";
10 $got = read(FOO,$buf,4);
12 print ($got == 4 ? "ok 1\n" : "not ok 1\n");
13 print ($buf eq "perl" ? "ok 2\n" : "not ok 2 :$buf:\n");
16 $got = read(FOO,$buf,4);
18 print ($got == 0 ? "ok 3\n" : "not ok 3\n");
19 print ($buf eq "" ? "ok 4\n" : "not ok 4\n");