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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Displaying HTML with perl
by NetWallah (Canon) on Sep 24, 2014 at 19:57 UTC | |
Re: Displaying HTML with perl
by hexcoder (Curate) on Sep 24, 2014 at 19:50 UTC | |
Re: Displaying HTML with perl
by Solo (Deacon) on Sep 24, 2014 at 19:53 UTC | |
Re: Displaying HTML with perl
by Hramyzn (Novice) on Sep 24, 2014 at 21:41 UTC | |
by Aldebaran (Curate) on Sep 25, 2014 at 07:26 UTC |
Back to
Seekers of Perl Wisdom