in reply to Help with HTML:Template

aalneyperl:

To answer your questions:

1) If you don't use a webserver, then you'll need to put the resulting output file on your machine and point the browser at that file, e.g., "file:///C:/WWWTemp/foo.html".

2) You can run your perl program manually (such as from a DOS window) to regenerate your html file. If it's a simple status monitoring page, just run it as a scheduled job periodically. Then make a bookmark to your local status page, and you can check it whenever you like.

3) HTML::Template tutorial is going to show you how to use it. It's a tool that lets you make HTML documents. It's not going to show you how to deliver the documents. It's a totally different job...

4) You can place the files anywhere you like. The perl/cgi-bin is a convention used for web servers (as far as I know ... I've never made a perl web app before). If you're creating your own, you can make your own conventions.

FYI: You could make it an active document such that you could have an HTML document on your machine, and have a bit of VBScript (if you're using IE) call your perl script to do the job.

Hope this helps!

...roboticus

Replies are listed 'Best First'.
Re^2: Help with HTML:Template
by aalneyperl (Acolyte) on Dec 08, 2007 at 14:59 UTC
    Hi, Thanks roboticus ... As you can see from my code..i plan to use HTML::Template mondule..can you let me know where am i going wrong.
        How do i deliver the document?
        Hi, Apologies for my ignorance...i called the template file from the browser and it just printed what what written in the template file and not the actual value from the perl file..this is my actual problem..
        My problem 1) Do i have to call the .pl from the browser 2) Do i have to call the template file from the browser 3) I am unable to understand how to run the files to get the output thanks..