I have a question, since I am a programmer. I've now finished my program in perl; actually one of my colleagues suggests splitting the html code into another file like a module, and passing all the info as a hash into that html file and generating another new html file out.
But my perl program contains all the logic to print the html, so I follow the way he wants to split the html code; then I need to put the header, all the functions in perl to print the header where the expiry will be no more, and in that temp file I need to put the .
So should I do it or not? For in my opinion, perl is for the replacement of html; why do we need to split the html code into another file, make a perl file to pass in the server data which needs to be published for the user with hash variable, and finally make out another new html file, and publish the html file indeed the cgi file?
Maybe the question I make a bit confusing; but please write some ideas and please ask about the confusing parts, I will reply.
Thank you
Edit 2001-06-18 10:17 GMT +1 -- ar0n More descriptive title
Edit 2001-06-18 5:17 EST -- Petruchio Added whitespace, corrected
grammatical and typographic errors. View source for original.
In reply to Separation of content and code by Draff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |