http://qs1969.pair.com?node_id=235618


in reply to How to iterate by fives?

I find that it is awfully cumbersome to write forms and tables with CGI.pm. I suggest using HTML::Template. It lets you write your perl in perl and your html in html.

-caedes

Replies are listed 'Best First'.
Re: Re: How to iterate by fives?
by ilcylic (Scribe) on Feb 16, 2003 at 00:56 UTC
    Yes. HTML::Template++. I've used this module a number of times, and it makes dealing with re-formatting the HTML so much nicer. The other advantage is that you can hand the template file to your web-designer, (who if you are unlucky, does not speak perl) and they can deal with it in their WYSIWYG editor, if it will play nice with non-standard tags.

    The other nice thing is that you can put loops in your templates so you don't have to repeatedly loop to generate repetitive HTML.

    -Il Cylic

    Section 66: Cruel, unjust, and dedicated to death.
Re: Re: How to iterate by fives?
by moof1138 (Curate) on Feb 16, 2003 at 21:10 UTC
    Thanks, since you mentioned it I have been looking at HTML::Template, and this looks like it is definitely the way to go down the line. For the short term I just needed to get this thing out the door, but now that I have doe a bit of experimenting with it, I definitely want to migrate all my CGIs over to HTML::Template, it looks like it should make life a lot better. Again, thanks.