On Fri, Mar 07, 2008 at 01:54:24PM +0000, Alastair Douglas wrote: > 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 ...
Replace "an empty list" with "an empty list of key/value pairs", and "an empty scalar" (no such thing, btw) with "a single key with an undefined value", and it should be clearer. <%args> must work this way, because otherwise this would never work: <%args> $foo => 17 </%args> if (defined $foo) { # do some foo stuff } # elsewhere # does some foo stuff <& mycomp, foo => 0 &> # doesn't do some foo stuff <& mycomp, foo => undef &> hdp. ------------------------------------------------------------------------- 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