Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Displaying HTML with perl

by 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?

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
    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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found