File: LexicalForeachIterator.run

package info (click to toggle)
libperl-critic-community-perl 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 428 kB
  • sloc: perl: 1,100; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## name UndeclaredIterator
## failures 2
## cut

for $foo (@bar) {}
foreach $bar (@foo) {}

## name DeclaredIterator
## failures 0
## cut

for my $foo (@bar) {}
foreach my $bar (@foo) {}

## name NoIterator
## failures 0
## cut

for (@bar) {}
for ($foo = 0; $foo < 5; $foo++) {}