| 1 |
## name UseEach |
| 2 |
## failures 2 |
| 3 |
## cut |
| 4 |
|
| 5 |
while (($key, $value) = each %hash) { ... } |
| 6 |
while (($i, $elem) = each @array) { ... } |
| 7 |
|
| 8 |
## name NoEach |
| 9 |
## failures 0 |
| 10 |
## cut |
| 11 |
|
| 12 |
foreach my $key (keys %hash) { ... } |
| 13 |
foreach my $i (0..$#array) { ... } |