No such thing as a small change | |
PerlMonks |
Displaying HTML with perlby Hramyzn (Novice) |
on Sep 24, 2014 at 19:25 UTC ( [id://1101847]=perlquestion: print w/replies, xml ) | Need Help?? |
Hramyzn has asked for the wisdom of the Perl Monks concerning the following question: Hello, I'm starting a project and I need a bit of help. The problem is, how do I print HTML in a browser without putting the HTML code directly inside the Perl code. I'm familiar with the print "Content-type: text/html\n\n"; way of doing things, but I'm looking for a way to have example.pl and webpage.html files and by typing the URL which leads to example.pl the webpage.html is displayed. I want to separate the program logic (the .pl file) from the display (the .html file). Any ideas?
Back to
Seekers of Perl Wisdom
|
|