On 30 Oct 2002, Randal L. Schwartz wrote: > [% > FOR key IN hash.keys > %] > <tr> > <td><em>[% key %]:</em></td> > <td>[% hash.key %]</td> > </tr> > [% > END > %] > > You seem to be reinventing Mason, with a slightly different syntax
As a Mason user, I see a major difference here in that it is not clear which of the [% %] blocks are designed to output and which are flow control. Mason explicitly uses <% %> for outputting values and <%perl> or a line starting with a % for procedural control. I think that this is an important issue. > (<perl> .. </perl>, instead of <% .. %>). And that's why I hate Mason > now. There's no "mini-language" that I can teach a non-Perl-head to Pick a subset of Perl and teach only that? Why do you have to translate everything to uppercase in order to pick out a subset? > help me with my pages. They must be exposed to ALL OF PERL for > anything non-trivial. Ugh. S. -- Shevek I am the Borg. sub AUTOLOAD{my$i=$AUTOLOAD;my$x=shift;$i=~s/^.*://;print"$x\n";eval qq{*$AUTOLOAD=sub{my\$x=shift;return unless \$x%$i;&{$x}(\$x);};};} foreach my $i (3..65535) { &{'2'}($i); }