[pm-h] Another mod_perl issue I can't resolve

G. Wade Johnson gwadej at anomaly.org
Thu Feb 13 09:33:47 PST 2014


On Thu, 13 Feb 2014 10:35:45 -0600
"Fraser Baker" <flbaker at sbcglobal.net> wrote:

> Hi:
> 
> My call to calendar.cgi works without mod_perl, but fails when
> mod_perl is running.
> 
> Apache error message
> Can't locate object method "initialize" via package "HTML::Template"
> at D:/www/wc-admin.com/cgi-bin/event_calendar/calendar.cgi line
> 133.\n 
> 
> calendar.cgi lines
> use HTML::template;
> Line 133 is: my $tmpl =
> HTML::Template->initialize( $directives->{'template'} ||
> 'template.html' );
> 
> I can't figure this out. Anyone have any ideas?

"HTML::template" should be "HTML::Template"

The case matters. I vaguely remember having problems long ago with
Windows case-folding for file lookup, and leaving the package namespace
wrong.

G. Wade
-- 
90% of coding is debugging. The other 10% is writing bugs.
                                                       -- Bram Cohen


More information about the Houston mailing list