On Sat, Aug 19, 2006 at 02:26:28AM +0000, Luke Palmer wrote:
> On 8/19/06, Aaron Crane <[EMAIL PROTECTED]> wrote:
> >You don't actually need a macro in that case:
> >
> > if 0 { q<
> > ...
> > > }
>
> Which, of course, eliminates the original desire to have a
> code-commenting construct where "you just change the 0 to a 1". After
> all, we already have #{}. Incidentally, you could consider that the
> desired construct, because it balances, and a closure at statement
> level executes itself:
>
> #{
> if $baz {
> $foo.bar
> }
> }
>
> To uncomment, remove the # before the {.
Or in the same vein
if 0 { q<
....
# > }
To uncomment the real code, add # before the if.
Although it is visually complex.
Nicholas Clark