Re: [htmltmpl] LOOP over array of scalar elements
Brought to you by:
samtregar
From: Gabor S. <ga...@pe...> - 2003-12-23 07:28:06
|
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->param(items => [map{{item => $_}} @items] ); > thanks for your confirmation and suggestion. Gabor |