8 open(FH, "> $file") || die "can't create $file: $!";
9 print FH "not ok " . $j++ . "\n";
10 close(FH) || die "Can't close $file: $!";
18 @ARGV = mkfiles(1..3);
21 print STDOUT "# initial \@ARGV: [@ARGV]\n";
30 @ARGV = mkfiles(1..3);
33 print STDOUT "#final \@ARGV: [@ARGV]\n";
47 print STDOUT "# Calling other\n";
51 @ARGV = mkfiles(5, 4);
53 print STDOUT "# inner \@ARGV: [@ARGV]\n";
59 my @files = map { "scratch$_" } @_;
60 return wantarray ? @files : $files[-1];
63 END { unlink map { ($_, "$_.bak") } mkfiles(1..5) }