in reply to Keyword last for loops
It applies to for loops.
for (1..3) { ... } for (@a) { ... } for (my $i=10; $i--; ) { ... }
It applies to while and until loops.
while (f()) { ... } until (f()) { ... }
It applies to bare loops.
{ ... }
It does NOT apply to conditional statements.
if (f()) { ... } unless (f()) { ... }
It does NOT apply to statement modifiers.
... while f(); Including: do { ... } while f(); ... for @a; ... if f(); etc
It does NOT apply loop-like functions.
grep { ... } @a map { ... } @a
|
|---|