in reply to foreach and if inside <<ENDHTML? Can they work?
(Of course, there are other good templating systems out there, but HTML::Template covers exactly the functionality it appears you are looking for, so I think it's the best choice for you)
As your code stands at the moment, you seem to rate a #3 on Cody Pendant's scale of Perl/HTML interaction, which isn't bad. You could certainly do much worse! However, you've stumbled upon one of the main limitations of here-docs. So although I don't really address your original question (the other posts cover that pretty well), I just wanted to save you the trouble of trying to make your own templating system (#4 on the scale), which is a common next step up the ladder, but nearly always given up later in favor of a proven templating system (#5).
blokhead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: foreach and if inside <<ENDHTML? Can they work?
by frogboy (Initiate) on Aug 13, 2003 at 06:29 UTC | |
by blokhead (Monsignor) on Aug 13, 2003 at 07:43 UTC | |
by frogboy (Initiate) on Aug 13, 2003 at 07:57 UTC |