The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Graph::Template::Container::Data

PURPOSE

To provide looping

NODE NAME

LOOP

INHERITANCE

Graph::Template::Container

ATTRIBUTES

  • NAME

    This is the name of the loop. It's used to identify within the parameter set what variables to expose to the children nodes each iteration.

CHILDREN

None

EFFECTS

None

DEPENDENCIES

None

USAGE

  <data name="LOOPY">

    ... Children here ...

  </data>

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.

The children are expected to be DATAPOINT nodes. I'm not quite sure what will happen if the nodes aren't. I also have not tested what will happen if you have a DATA node within a DATA node.

You can have more than 2 DATAPOINT nodes in a DATA node. What will happen is the first will be the X-axis. The remaining will be graphed on the Y-axis. See GD::Graph for more info.

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 (rkinyon@columbus.rr.com)

SEE ALSO

DATAPOINT

1 POD Error

The following errors were encountered while parsing the POD:

Around line 146:

=back doesn't take any parameters, but you said =back 4