I haven't used HTML::Template before, but I was just checking the docs for it on CPAN. ( http://search.cpan.org/~wonko/HTML-Template-2.95/lib/HTML/Template.pm)
Just like the error message states, I too can't find an "initialize" method in the docs for that module. There is a "new" method, which creates a new HTML::Template object. Perhaps that's what you need to use instead of "initialize"? Also, Wade has a good point about the capitalization in the module name. For a lot of things in Windows, the OS is case-insensitive. However, the Perl interpreter is not case-insensitive. That's something that has bitten me on numerous occasions. John Ellyson On Thu, Feb 13, 2014 at 10:35 AM, Fraser Baker <[email protected]>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? > > Fraser > > _______________________________________________ > Houston mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ >
_______________________________________________ Houston mailing list [email protected] http://mail.pm.org/mailman/listinfo/houston Website: http://houston.pm.org/
