summaryrefslogtreecommitdiff
path: root/t/io/fs.t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-06-11 16:51:04 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-06-11 16:51:04 +0000
commitbb53490d97a5ed51902bcf0779766b7e3359f9ff (patch)
treeab95ca6646d256ee80c43f6ac2eb1470ab62f7e6 /t/io/fs.t
parentcaa0600b4c83a09cb365bc88dbf54f31a5992f3c (diff)
downloadperl-bb53490d97a5ed51902bcf0779766b7e3359f9ff.tar.gz
truncate() has a peculiar exemption from strict barewords, even
though it has a non-filehandle prototype p4raw-id: //depot/perl@3533
Diffstat (limited to 't/io/fs.t')
-rwxr-xr-xt/io/fs.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/io/fs.t b/t/io/fs.t
index b92ef8eccd..b74c9caf9d 100755
--- a/t/io/fs.t
+++ b/t/io/fs.t
@@ -142,8 +142,11 @@ else {
if (-z "Iofs.tmp") {print "ok 24\n"} else {print "not ok 24\n"}
open(FH, ">Iofs.tmp") or die "Can't create Iofs.tmp";
{ select FH; $| = 1; select STDOUT }
- print FH "helloworld\n";
- truncate FH, 5;
+ {
+ use strict;
+ print FH "helloworld\n";
+ truncate FH, 5;
+ }
if ($^O eq 'dos') {
close (FH); open (FH, ">>Iofs.tmp") or die "Can't reopen Iofs.tmp";
}