Re: mod_perl usage

Matthew Boehm <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
I jumped the gun on this one. I have two versions of our CGI. They are 
exactly the same except version 2 uses HTML::Template.

Version 1 doesn't experience this cache problem. Version 2 does. This is 
why I believe HTMLTemp is causing this in conjunction with mod_perl.

I'm going to try a telnet test and see what results come.

-Matthew

> Hmm. I am using strict, but I do have many "globals".  Here are the
> first few lines of our program:
> 
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> 
> use lib '/path/to/something/';
> use tools qw($dbh $webpage_obj &displayError $template &messageDie);
> 
> $template = new HTML::Template(filename =>
> '/home/omnovia/public_html/pages/sctest/templates/background.tpl',
>                          path =>
> '/home/omnovia/public_html/pages/sctest/templates/',
>                          cache => 1,
>                          debug => 1,
>                          stack_debug => 1,
>                          cache_debug => 1,
>                          die_on_bad_params => 0);
> 
> tools::DBConnect();
> 
> my ($companyID, $firstName, $lastName, $companyUsername);
 > <several more lines of my's before getting into functions>
> 
> As I'm sure you have all learned by now, I'm not a perl programmer..
> 
> Thanks,
> -Matthew


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.