Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Error using HTML::Template

by BUU (Prior)
on Dec 11, 2003 at 06:31 UTC ( #313994=note: print w/ replies, xml ) Need Help??


in reply to Error using HTML::Template

output print "Content-Type: text/html\n\n", $template->output; Typo? New feature?


Comment on Re: Error using HTML::Template
Download Code
Re: Re: Error using HTML::Template
by allolex (Curate) on Dec 11, 2003 at 07:28 UTC

    i.e. Your comment should be on just the one line, anneq. This might have been a copy-and-paste error (from you local server to the remote, or from your local server to the Monastery, not sure which), which is why you should use <code> tags to include code in your posts.

    This also should have produced an error. Did you check for errors? Hint: run it from the console before you test it on the web.

    (I also recommend you use strict in all your scripts to make sure you're generally declaring your variables, etc. correctly. It's a bit of bondage that encourages good coding practices.)

    # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output;

    --
    Allolex

      Allolex,

      Thanks for your reply. My comment is on one line. I'll use code tags next time, though. Thanks for that tip. I didn't know about code.

      I ran it from the console and from my local web server and it ran just fine.

      I put use strict and -wT in all my scripts but I tried without them and it still didn't work.

      Thank you for your help,

      Anne

      Anneq
Re: Re: Error using HTML::Template
by Anneq (Vicar) on Dec 11, 2003 at 13:40 UTC

    This is taken right out of the documentation that comes with the module.

    Anne

    Anneq

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2014-09-02 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (22 votes), past polls