Apache::Wyrd::Loop - Loop through SQL query results
<BASENAME::Loop query="select name from contact"> <P>$:name</P> </BASENAME::Loop> <BASENAME::Loop query="select name from contact where name is like 'S%'"> <b>$:name</b> </BASENAME::Loop>
Loop performs a given query and iterates through the result of the query, set-ting the enclosed text for each query item and concatinating the results together. Unlike normal Wyrds, however, the enclosed text is NOT interpreted prior to this treatment, allowing Wyrds to be included in this template.
set
The query to pass to the SQL engine. Use Apache::Wyrd::Attribute if this query has unsafe characters (quote, <, etc.).
NONE
Reserves the _setup and _format_output methods.
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.