not really sure what the end goal is here, but does this help?

% $m->out(
%   join( ",\n", map {
%     "i am a $_"
%   } qw/foo bar fish/ )
% );


Gareth Kirwan wrote:
Has anyone had any success using a join in a mason line like this:
% join ",\n", map {
 <% $_ %>
%    } qw/foo bar fish/;
The map on it's own works fine, obviously, but the join is considered contextless. Gareth Kirwan
Programming & Development,
Thermeon Europe Ltd,
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Tel: +44 (0) 1293 864 303
Thermeon Europe e-Card: gbjk <http://www.thermeoneurope.com/e-Card/gbjk>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to