Skip to content

Commit 9ef5300

Browse files
committed
t/io/nargv.t: Fix obsolete usage: @foo[-1]
Use $ to reference an array element
1 parent 861a720 commit 9ef5300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/io/nargv.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ sub mkfiles {
134134
$files[$_] ||= tempfile();
135135
}
136136
my @results = @files[@_];
137-
return wantarray ? @results : @results[-1];
137+
return wantarray ? @results : $results[-1];
138138
}
139139

140140
END { unlink_all map { ($_, "$_.bak") } @files }

0 commit comments

Comments
 (0)