[Templates] bug in Template/Base.pm

Sergey Martynoff sergey@martynoff.info
Mon, 21 May 2007 20:05:58 +0400


> Hi everybody. I think I've found a bug in Template/Base.pm 
> constructor (TT version 2.15). You have to call "map" (line 
> 68) in list context explicitly (from perldoc -f map : "In 
> scalar context, returns the total number of elements so 
> generated"). Patch in attach.

Sorry, compatriot, but that's all right with Template::Base. The "map" there
is already in the list context, because is placed inside hash braces. And,
anyhow, the whole Template Toolkit won't work, if it would be in scalar
context ;)


-- 
Sergey Martynoff