FleetConf::Agent::Parser::Stmt::FOREACH - FOREACH command
NAME Some-Agent MNEMONIC foo WORKFLOW Null FOREACH thing IN this.things DO # Do something with thing END
This command adds the ability to loop over a list of items.
The BNF for the FOREACH command is:
FOREACH
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.
Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>
Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.
FleetConf is distributed and licensed under the same terms as Perl itself.
To install FleetConf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FleetConf
CPAN shell
perl -MCPAN -e shell install FleetConf
For more information on module installation, please visit the detailed CPAN module installation guide.