Re: [htmltmpl] LOOP over array of scalar elements
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2003-12-22 09:13:27
|
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 ought to work) Roger |