Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: CGI.pm - Dreamweaver or somesuch?by Masem (Monsignor) |
on Apr 27, 2001 at 21:41 UTC ( [id://76185]=note: 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 Section
Seekers of Perl Wisdom
|
|