Given this code:
>>>>>>>>

<h1>OH HAI</h1>

<p>1. <%text><& SELF:wants &></%text> <& SELF:wants &></p>

<p>2. <%text><% $m->comp('SELF:wants') %></%text> <% 
$m->comp('SELF:wants') %></p>

<p>3. <%text><% my $dump = $m->comp('SELF:wants') %></%text> <% my 
$dump = $m->comp('SELF:wants') %></p>

<%method wants>
<% wantarray ? "WANT" : "DON'T WANT" %>
</%method>

<<<<<<<<<<

Why does No. 2 behave differently from 1 and 3? I thought that 
wantarray was supposed to be undefined if the context is looking for 
no value.

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to