Commit 6dc77b2
committed
Fix use of loop variable
I was having this test fail when malware scanning is enabled with:
Use of uninitialized value $_ in concatenation (.) or string at t/web/charting.t line 14.
In perlsyn under https://perldoc.perl.org/perlsyn#Foreach-Loops it says:
The foreach keyword is actually a synonym for the for keyword, so you can use
either. If VAR is omitted, $_ is set to each value.
VAR is set (it is $n), so perhaps this usage of $_ while VAR is set
is undefined.1 parent 81dde1c commit 6dc77b2
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments