As in the previous description, you have to create a subdir HTML
where you put Template.pm in.
Because HTML::Template is translated by perl to HTML/Template.pm
and is searched in the pathes included via use lib
Therefore move Template.pm to
/usr/local/etc/httpd/htdocs/htmltest/cgi-bin/HTML/Template.pm
Cheers
+rl
Johannes Gamperl wrote:
>
> Hello again,
>
> thx to all who sent me a mail with hepl ... but i've still a problem
> to get the Module to work. That is, what i try to use:
>
> ---- snipp ---------------------
>
> #!/usr/bin/perl
>
> if ($0=~m#^(.*)\\#){ $cgidir = "$1"; }
> elsif ($0=~m#^(.*)/# ){ $cgidir = "$1"; }
> else {`pwd` =~ /(.*)/; $cgidir = "$1"; }
>
> use lib '/usr/local/etc/httpd/htdocs/htmltest/cgi-bin';
> use HTML::Template;
>
> my $template = HTML::Template->new(filename => 'html_template.tmpl');
> $template->param(vorname => "Johannes");
> $template->param(name => "Gamperl");
>
> print "Content-type: text/html\n\n";
> print $template->output;
> exit;
>
> ---- snipp ---------------------
>
> The Template.pm is in the cgi-bin directory of my root (the path in
> lib ..) .. the html_template.tmpl in the same directory.
>
> any ideas to get the skript to work?
>
> thx a lot
> Hannes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
+rl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Roland Lammel fax: +431 60501 3405
Customer Support / TAS phone: +431 60501 3456
mailto:[EMAIL PROTECTED] mobile: +43664 628 3456
Austria Telecommunication, Triesterstr. 70, 1102 Vienna
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Enjoy your job, make lots of money, work within the law."
Choose any two...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]