Perl Programming/Keywords/for

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: flock Keywords Next: foreach

The for keyword

[edit | edit source]

for is the keyword used to start a for loop.

Syntax

[edit | edit source]
  for (my $var = <value>; <condition>; <operation on $var>) ;

See also

[edit | edit source]
Previous: flock Keywords Next: foreach