On Mon, 22 Dec 2003, Roger Burton West wrote:
> On Mon, Dec 22, 2003 at 09:49:48AM -0200, Gabor Szabo wrote:
>
> >So far the only way I could think of is to go over these arrays and
> >replace the scalar values with hash-refs:
>
> Correct. You can do this in a single pass, of course:
>
> $tmpl->
On Mon, Dec 22, 2003 at 09:49:48AM -0200, Gabor Szabo wrote:
>So far the only way I could think of is to go over these arrays and
>replace the scalar values with hash-refs:
Correct. You can do this in a single pass, of course:
$tmpl->param(items => [map{{item => $_}} @items] );
(untested but ou
your suggested solution - is the correct solution
cheers,
Mathew
- Original Message -
From: "Gabor Szabo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 10:49 PM
Subject: [htmltmpl] LOOP over array of scalar elements
>
> It might be a very simple question