perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Randal L. Schwartz)
Subject Re: A question for the newbies
Date Thu, 16 Feb 2006 18:33:49 GMT
>>>>> "Tyler" == Tyler MacDonald <> writes:

Tyler> Why am I forced to say

Tyler> 	[% FOREACH(blah) foo %]

Tyler> 	Instead of the

Tyler> 	[% for my $i (@foo) %]

Tyler> 	I've become happily used to?

Because the day will come when you want to replace

        foo.a # get $foo->{a}


        foo.a # invoke $foo->a

and you don't want to teach your HTML-whackers to change their
syntax everywhere.

The nice thing about TT is that it hides nearly everything into
a much more Perl6-like syntax.  Oh, and loop.first and loop.last *rock*.

If you find yourself agonizing over the very-easy-to-learn TT syntax,
you're doing *too* much in TT.  It's self-limiting.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<> <URL:>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See for onsite and open-enrollment Perl training!

View raw message