In your docs you say:
The <%perl> tag, like all block tags in Mason, is case-insensitive. It
may appear anywhere in the text, and may span any number of lines.
<%perl> blocks cannot be nested inside one another.
This is confusing because obviously if you are in a block that is
supposed to be multi-lined inline perl, there is no syntax in perl that
equates to a <%perl> tag. So if you are in a <%perl> you can only do
perl. However what you really mean that you can't nest perl tags into
other types of mason inline blocks. For example, the following is not
allowed:
<% $expression
<%perl>
some perl code
</%perl>
%> <!- this will NOT make an inline expression multi-line.. -->
% if ($somecondition eq 'true') {
<%perl>
# set up some stuff here
</%perl>
This is the <% $result %>
% } # the <%perl> tag will throw a Lexer error. The inline <% %> tag
should not. For the <%perl> tag, use a <%method> or <%def> tag and call
it using a subcomp <& &> tag or piped subcomp <&| &> </&> tag.
Thanks,
Carl Furst
************************
MLB.com: Where Baseball is Always On
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users