> Yeah, I think I am finally getting this... > so in my template.html file, I write this: > ...<td><TMPL_VAR NAME="QOD"></td>* > > and in a perl script, (I am not using sql, in fact, I > am just reading from a text file) I read from the > file, assign the proper html tag value* to a variable > $quote_of_the_day* > and then I use the line: > my $template = HTML::Template->new(filename => > "tempalte.html"); > to load the template hteml file* > and do a > $template->param(QUD => $quote_of_the_day)* > and finally > output with > return $template->output();* > > are the points marked by (*) above correct?
Exactly. > okay...here is another point...say this is my main > page, I want the user to c it when it browses to > http://localhost/ > if I am using an Apache2 for win32 server...is it > possible for the server to call my perl script when > the user browses to http://localhost/ (no localhost of > course) ... can u see what my problem is? Er, yes. Altho this functionality is sort of broken with Apache 2 and mod_perl 2.... But in a production environment of Apache 1.3.27 and mod_perl 1.27, I have redirected any all input to a subroutine in a script. Goto http://ttms.stout.dyndns.org and see what you see. From there, add anything you like to the URI. I suggest reading the mod_perl API on the apache website, it tells you how to use mod_perl with Apache. I can help you write a RequestHandler to handle it. Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]