|
|
Choosing A Webhost: |
Re: LOOP over array of scalar elements: msg#00067lang.perl.modules.html-template
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 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Consistant wrapper template?, Roderick A. Anderson |
|---|---|
| Next by Date: | Can HTML::Template do subtotals?, LDT |
| Previous by Thread: | Re: LOOP over array of scalar elements, Roger Burton West |
| Next by Thread: | Consistant wrapper template?, Roderick A. Anderson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |