I have been trying (and trying) to use the code below as I need to use HTML 
templates in perl, and I keep getting the same error.

Can't locate HTML/Template.pm in @INC (@INC contains: 
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) 
at /home/sites/site171/web/ibglda6kekkd/test.pl line 5.

This looks to me as though the server that provides the web space that I am 
using doesnt support 'use HTML::Template;'. Is this correct or have I really 
lost the plot ????? (Probably both !!!) - If so, what is the alternative. 
There has to be another way of using templates in PERL ???? I have been told 
by the company that provide the web space that I cant upload modules - is 
this true - and can I upload the HTML::Template module ?????

>---------     filename = test.pl --------------------------
>
>#!/usr/bin/perl
>
>use HTML::Template;
>
>my $template = HTML::Template->new(filename => 'test.tmpl');
>
>$template->param(
>    HOME => $ENV{HOME},
>    PATH => $ENV{PATH},
>);
>
>print "Content-Type: text/html\n\n";
>
>print $template->output;
>
>
>print "\n\nINC = @INC \n\n";
>
>
>
>---------------------- filename: test.tmpl    THIS IS YOUR TEMPLATE
>FILE-----------------------------
>
>
><HTML>
><HEAD><TITLE>Test Template</TITLE>
><BODY>
>My home directory is<TMPL_VAR NAME=HOME>
><P>
>MY PATH is set to <TMPL_VAR NAME=PATH>
></BODY>
></HTML>
>
>__________________
>

Thanks for all your help so far - it is really appreciated !!!

All the best
Anadi

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to