[Templates] FOREACH problem with wantarray and a single element result
Michael Lackhoff
michael at lackhoff.de
Sat Jun 21 09:13:55 BST 2008
On 21.06.2008 09:45 Mihai Bazon wrote:
> It has been discussed:
>
> http://www.mail-archive.com/templates@template-toolkit.org/msg08514.html
>
> Best is to always return a reference and avoid "wantarray"...
I agree but the actual objects are from a CPAN-module, so I have little
influence on that (especially given backwards-compatibility concerns).
My example just wanted to give a self-contained playground that behaves
in the relevant aspect just like the real objects (Rose::DB::Objects).
But thanks for the pointer, I will have a look at that thread.
-Michael
More information about the templates
mailing list