Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

3Re: html template in a perl script

by jeffa (Bishop)
on Sep 21, 2003 at 15:56 UTC ( #292992=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: html template in a perl script
in thread html template in a perl script

Um, the DATA method is what we are talking about! You just put your template in the DATA section of your Perl script. I use this all the time for simple CGI scripts and examples i post here at the Monastery - but for anything serious, i use another file for the template. As for your overkill problem, the more you use HTML::Template the less the overkill seems to be a problem.

As for your problem at Re: html template in a perl script, have you looked into Template yet? Kake Pugh has an excellent article over at How to Avoid Writing Code that demonstrates how well that Class::DBI works with Template Toolkit.


(the triplet paradiddle with high-hat)

Comment on 3Re: html template in a perl script

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://292992]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-11-26 12:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (698 votes), past polls