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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|