minor File::Spec testing cleanup
Ken Williams [Thu, 21 Aug 2003 22:47:51 +0000 (17:47 -0500)]
Message-Id: <67C30B63-D453-11D7-8495-003065F6D85A@mathforum.org>

p4raw-id: //depot/perl@20908

lib/File/Spec/t/rel2abs2rel.t

index 79119e0..7af1042 100644 (file)
@@ -9,6 +9,7 @@ use Test::More (-x $^X
               );
 
 BEGIN {                                # Set up a tiny script file
+    local *F;
     open(F, ">rel2abs2rel$$.pl")
       or die "Can't open rel2abs2rel$$.pl file for script -- $!\n";
     print F qq(print "ok\\n"\n);
@@ -43,6 +44,8 @@ sub sayok{
     system($perl, "rel2abs2rel$$.pl");
     open(STDOUT, '>&STDOUTDUP');
     close(STDOUTDUP);
+
+    local *F;
     open(F, "rel2abs2rel$$.tmp");
     local $/ = undef;
     my $output = <F>;