summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-07-18 01:17:40 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-07-18 01:17:40 +0000
commit5ef887f565b93732e1d57415b9f72359f638b378 (patch)
tree1480af0914aefb88d7cb06a1bfcb974784dc0cf6
parent1b4456a8892ee0830301c995e971fe019bf35ff0 (diff)
downloadperl-5ef887f565b93732e1d57415b9f72359f638b378.tar.gz
perl 5.003_01: t/lib/filehand.t
Can't call FileHandle methods on unblessed file handle, since IO::Handle is now the default class
-rwxr-xr-xt/lib/filehand.t12
1 files changed, 3 insertions, 9 deletions
diff --git a/t/lib/filehand.t b/t/lib/filehand.t
index fc43350212..0199a52ace 100755
--- a/t/lib/filehand.t
+++ b/t/lib/filehand.t
@@ -14,7 +14,7 @@ use FileHandle;
use strict subs;
$mystdout = new_from_fd FileHandle 1,"w";
-autoflush STDOUT;
+$| = 1;
autoflush $mystdout;
print "1..4\n";
@@ -24,12 +24,6 @@ $fh = new FileHandle "TEST", O_RDONLY and print "ok 2\n";
$buffer = <$fh>;
print $buffer eq "#!./perl\n" ? "ok 3\n" : "not ok 3\n";
-if ($^O eq 'VMS') {
- ungetc $fh 65;
- CORE::read($fh, $buf,1);
-}
-else {
- ungetc STDIN 65;
- CORE::read(STDIN, $buf,1);
-}
+ungetc $fh 65;
+CORE::read($fh, $buf,1);
print $buf eq 'A' ? "ok 4\n" : "not ok 4\n";