Rob Kinyon > Excel-Template-0.29 > Excel::Template::Container::Loop

Download:
Excel-Template-0.29.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  1
View/Report Bugs
Source   Latest Release: Excel-Template-0.34

NAME ^

Excel::Template::Container::Loop

PURPOSE ^

To provide looping

NODE NAME ^

LOOP

INHERITANCE ^

Excel::Template::Container

ATTRIBUTES ^

CHILDREN ^

None

EFFECTS ^

None

DEPENDENCIES ^

None

USAGE ^

  <loop name="LOOPY">
    ... Children here ...
  </loop>

In the above example, the children nodes would have access to the LOOPY array of hashes as parameters. Each iteration through the array would expose a different hash of parameters to the children.

These loops work just like HTML::Template's loops. (I promise I'll give more info here!)

There is one difference - I prefer using Perl-like scoping, so accessing of variables outside the LOOP scope from within is perfectly acceptable. You can also hide outside variables with inner values, if you desire, just like Perl.

AUTHOR ^

Rob Kinyon (rob.kinyon@gmail.com)

SEE ALSO ^

syntax highlighting: