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