On Fri, 19 Jul 2002, Andy Wardley wrote:
> Good, bad or ugly? :-)
Yes ;-)
It's an artifact of the fact that we don't really have list or scalar
context, therefore don't really have lists and scalars (as a scalar is
being treated as a list of one item in most places that need to.)
I had a long think about this and came to the conclusion that there is no
right way to do it. Playing with deep data structures will probably get
you shot unless you explicitly say what you mean in TT. So be it.
So I hearby propose a slogan:
Template Toolkit: Making the easy things really easy, and the hard
things possible, even if you do have to use a Perl plugin to do them.
Anyway, after much thought, I agree with Andy. It does the right thing in
most cases.
Mark.
--
s'' Mark Fowler London.pm Bath.pm
http://www.twoshortplanks.com/ [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}