LoadHtml

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    <tr><td>102</td><td>Jerry</td></tr>
</table>

NOTE: "id" and "name" are parameters in the LOOP statement that are NOT DEFINED - (no argument is passed to them in the call to "loadhtml()"! This results in the subcomponents of the hashrefs passed to "hashref" (from @v) being used! This is similar ...

There are four special variables that have meaning within a loop construct:

    * :# Current increment value. If no increment expression or index list is specified, the loop is driven by the 1st array or hash argument. In that case, the increment value is the zero-based iteration of the loop. This value is always numeric and...
    * :* Always the current zero-based iteration of the loop (numeric). Normally, this is the same as :#, but if an increment expression or index list is specified before the parameters, then :# is set to each element of the increment expression/inde...
    * :% Current key value of the 1st (driving) hash (if the 1st argument is a hash-reference). Otherwise, this variable is empty (ie. if the loop is driven by an array).
    * :^ Always contains the number of iterations (one-based) that the loop will perform. 

Naming and nesting IF and LOOP constructs.

IF and LOOP constructs can be nested with each other.  If nested within the same construct, however, they must be named (in order for the parser to match up the proper closing tags).  This allows for qualifying the special variables (:#, :*, etc.) to...

<!IF2>...<!ELSE2>...<!/IF2>

    -or-

<!LOOP_OUTER>...<!/LOOP_OUTER>

README.htm  view on Meta::CPAN

zero-based iteration of the loop.  This value is always numeric and represents the index 
subscript of the vectors for the current iteration.

<LI>:*    Always the current zero-based iteration of the loop (numeric).  Normally, this 
is the same as :#, but if an <B>increment expression</B> or <B>index list</B> is specified before the parameters, 
then :# is set to each element of the increment expression/index list, whereas :* is ALWAYS 0,1,...

<LI>:%    Current key value of the 1st (driving) hash (if the 1st argument is a hash-reference).  
Otherwise, this variable is empty (ie. if the loop is driven by an array).

<LI>:^    Always contains the number of iterations (one-based) that the loop will perform.
</UL>

<P>Naming and nesting IF and LOOP constructs.</P>

<P>IF and LOOP constructs can be nested with each other.&nbsp; If nested
within the same construct, however, they must be named (in order for the
parser to match up the proper closing tags).&nbsp; This allows for qualifying the 
special variables (:#, :*, etc.) to the desired loop.  To name an "IF" or "LOOP"
constuct, simply append an alphanumeric string to the keyword, for example:</P>

lib/LoadHtml.pm  view on Meta::CPAN

    <tr><td>102</td><td>Jerry</td></tr>
</table>

NOTE: "id" and "name" are parameters in the LOOP statement that are NOT DEFINED - (no argument is passed to them in the call to "loadhtml()"! This results in the subcomponents of the hashrefs passed to "hashref" (from @v) being used! This is similar ...

There are four special variables that have meaning within a loop construct:

    * :# Current increment value. If no increment expression or index list is specified, the loop is driven by the 1st array or hash argument. In that case, the increment value is the zero-based iteration of the loop. This value is always numeric and...
    * :* Always the current zero-based iteration of the loop (numeric). Normally, this is the same as :#, but if an increment expression or index list is specified before the parameters, then :# is set to each element of the increment expression/inde...
    * :% Current key value of the 1st (driving) hash (if the 1st argument is a hash-reference). Otherwise, this variable is empty (ie. if the loop is driven by an array).
    * :^ Always contains the number of iterations (one-based) that the loop will perform. 

Naming and nesting IF and LOOP constructs.

IF and LOOP constructs can be nested with each other.  If nested within the same construct, however, they must be named (in order for the parser to match up the proper closing tags).  This allows for qualifying the special variables (:#, :*, etc.) to...

<!IF2>...<!ELSE2>...<!/IF2>

    -or-

<!LOOP_OUTER>...<!/LOOP_OUTER>



( run in 0.859 second using v1.01-cache-2.11-cpan-71847e10f99 )