NAME
Text::UberText::Modules::Loop - UberText Loop Commands
SYNOPSIS
[uber.loop count:(10) -> ]
This text will repeat 10 times.
[<- uber.loop ]
[uber.loop list:(randy,kyle,nick) variable:(bf) -> ]
My current boyfriend is [uber.var name:(bf)]
[<- uber.loop ]
DESCRIPTION
The Loop module controls simple looping directives that are identical to a for loop for integers, or a foreach loop for strings.
DOCUMENT COMMANDS
- [uber.loop count:(int) start:(int) variable:(varname) -> ]
-
Initiates a loop. The count value refers to the number of loop iterations. The start option indicates that the incrementor should start at an integer other than 1. The variable option saves the internal value of the iterator to a variable that can be displayed or further modified.
- [uber.loop list:(itemlist) variable:(varname) -> ]
-
Initiates a loop, one cycle for each item in the list. Items in the list are seperated by commas. If the variable option is set, the variable will be passed the value of the current item in the list.
AUTHOR
Chris Josephes <cpj1@visi.com>
SEE ALSO
COPYRIGHT
Copyright 2002, Chris Josephes. All rights reserved. This module is free software. It may be used, redistributed, and/or modified under the same terms as Perl itself. ~