Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Displaying HTML with perl

by Hramyzn (Novice)
on Sep 24, 2014 at 19:25 UTC ( #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?

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 (Deacon) 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
    Thank you guys, the template toolkit looks like what i was looking for :D

      I ordered and read that book, but I found the usages less-comprehensive than what I could get out of HTML::Template

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1101847]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2022-09-28 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (124 votes). Check out past polls.

    Notices?