in reply to HTML::Template question - tmpl_if
Hi kiat,
The code you posted runs just fine for me, and under strict and warnings to boot. The only way I could elicit the error you describe is by intentionally inserting either undef, a string literal, or an actual scalar in for the value of options. If the key is simply absent -- as in your template output 2 -- then the output looks as it should. There's nothing to iterate over and so no loop contents displayed. Are you positive that's what is actually generating the error?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTML::Template question - tmpl_if
by kiat (Vicar) on Dec 14, 2003 at 01:55 UTC | |
by djantzen (Priest) on Dec 14, 2003 at 02:12 UTC | |
by kiat (Vicar) on Dec 14, 2003 at 02:27 UTC | |
by djantzen (Priest) on Dec 14, 2003 at 02:50 UTC | |
by kiat (Vicar) on Dec 14, 2003 at 04:23 UTC |