This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH -- POD error in Symbol.pm
[perl5.git] / lib / subs.t
index 7952c20..b1999b2 100644 (file)
@@ -16,9 +16,7 @@ my $Is_VMS = $^O eq 'VMS';
 my $Is_MSWin32 = $^O eq 'MSWin32';
 my $Is_NetWare = $^O eq 'NetWare';
 my $Is_MacOS = $^O eq 'MacOS';
-my $tmpfile = tempfile();
 my $i = 0 ;
-END {  if ($tmpfile) { 1 while unlink $tmpfile} }
 
 for (@prgs){
     my $switch = "";
@@ -44,6 +42,7 @@ for (@prgs){
        shift @files ;
        $prog = shift @files ;
     }
+    my $tmpfile = tempfile();
     open TEST, ">$tmpfile";
     print TEST $prog,"\n";
     close TEST;