Anneq has asked for the wisdom of the Perl Monks concerning the following question:
I am trying out HTML::Template for the first time and used the script and template given in it's POD.
Template from HTML::Template POD:
<html> <head> <title>Test Template</title> </head> <body> <p>My Home Directory is <TMPL_VAR NAME=HOME></p> <p>My Path is set to <TMPL_VAR NAME=PATH></p> </body> </html>
Accompanying Script:
#!/usr/bin/perl -wT use HTML::Template; # open the html template my $template = HTML::Template->new(filename => 'test.tmpl'); # fill in some parameters $template->param(HOME => $ENV{HOME}); $template->param(PATH => $ENV{PATH}); # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output;
This resulted in the following error:
Can't locate object method "isa" via package "Cwd" at base.pm line 56.
I'm using the latest ActivePerl core for Windows and publishing to a remote web server that requires me to upload all of the necessary modules and perl scripts to a directory "/cgi-bin". Since it works fine on my local server, my guess is that I am missing a module(s) on the remote web server.
Any help with this problem would be appreciated.
Thanks in advance for your help,
Anne
Anneq
Back to
Seekers of Perl Wisdom