Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As we've talked about recently (such as here), you want to try separate perl code from HTML as much as possible, and the various templating solutions that exist (HTML::Mason, HTML::Template, or Template, to name a few) help you do this.
The key is to collect all the data that you need in the perl part of the program, and then throw that to the template file. Once you have the perl logic down, it's very easy to play whatever pretty-ing games you need to do with the HTML to make the output look good. You just simply need to embed the data from perl into the appropriate places. This approach makes the job of programming web sites for both function and appearence very simple.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain In reply to Re: CGI.pm - Dreamweaver or somesuch?
by Masem
|
|