http://qs321.pair.com?node_id=1101847

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?