Help for this page

Select Code to Download


  1. or download this
    <%init>
    my @foo = $m->comp( '.foo' );
    ...
    return wantarray ? @array : join( '', map "$_<br/>", @array );
    </%init>
    </%def>
    
  2. or download this
    <!-- correct -->
    <ol>
    ...
    %}
    </ol>
    <!-- correct --> <p>foo = <% $foo %></p>
    
  3. or download this
    <!-- incorrect --> <p>foo = <& .foo &></p>
    <!-- incorrect --> <p>foo = <% $m->comp( '.foo' ) %></p>
    <!-- incorrect --> <p>foo = <% $m->comp( '.foo' ) %></p>
    
  4. or download this
    <!-- correct -->   <p>foo = <% scalar $m->comp( '.foo' ) %></p>
    
  5. or download this
    <%def .get_foo>
    <%init>
    ...
    </ol>
    
    <!-- correct --> <& .display_foo &>