Jump to content

Perl Programming/Keywords/for

From Wikibooks, open books for an open world
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