On Fri, Mar 7, 2008 at 1:32 PM, Hans Dieter Pearcey <[EMAIL PROTECTED]> wrote: > On Fri, Mar 07, 2008 at 01:00:04PM +0000, Alastair Douglas wrote: > > <%perl> > > for (@some_pre_initialised_array) { > > my $foo; > > $foo = 'baz' if m/^fooisbaz$/; > > $m->comp(component.html, foo=>$foo); > > $m->comp('component.html', $foo ? (foo => $foo) : ()); >
Does seem slightly mucky, but it does do the job. Thanks. I take it this is expected behaviour then? And it does lead me to wonder quite how it works if an empty list works but an empty scalar doesn't ... Anyway, thanks, Hans :) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users