NAME

FleetConf::Agent::Parser::Stmt::FOREACH - FOREACH command

SYNOPSIS

NAME Some-Agent
MNEMONIC foo
WORKFLOW Null

FOREACH thing IN this.things DO
  # Do something with thing
END

DESCRIPTION

This command adds the ability to loop over a list of items.

The BNF for the FOREACH command is:

agent_command +::= foreach_section

foreach_section ::= foreach_command agent_command(s) end_command

foreach_command ::= "FOREACH" variable "IN" list_expression "DO" EOL

These statements are evaluated during every phase of agent execution.

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>

COPYRIGHT AND LICENSE

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.

FleetConf is distributed and licensed under the same terms as Perl itself.