<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Comprei o livro Programação CGI com Perl segunda edição, mais tem um exemplo com templates que naum esta funcionando, uso servidor linux, com cpanel e Perl versão 5.8.8, coloquei&nbsp;permissão&nbsp;0755 no arquivo current_time.cgi,&nbsp;esses são os script,<BR>
&nbsp;<BR>
arquivo current_time.cgi<BR>
&nbsp;<BR>
#!/usr/bin/perl -wT<BR>
use strict;<BR>use HTML::Template;<BR>
use constant TMPL_FILE =&gt; "$ENV{DOCUMENT_ROOT}/templates/current_time.tmpl";<BR>
my $tmpl = new HTML::Template( filename =&gt; TMPL_FILE );<BR>my $time = localtime;<BR>
$tmpl-&gt;param( current_time =&gt; $time );<BR>
print "Content-type: text/html\n\n",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $tmpl-&gt;output;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
arquivo current_time.tmpl<BR>
&nbsp;<BR>
&lt;HTML&gt;<BR>
&lt;HEAD&gt;<BR>&nbsp; &lt;TITLE&gt;Current Time&lt;/TITLE&gt;<BR>&lt;/HEAD&gt;<BR>
&lt;BODY BGCOLOR="white"&gt;<BR>&nbsp; &lt;H1&gt;Current Time&lt;/H1&gt;<BR>&nbsp; &lt;P&gt;Welcome. The current time is &lt;TMPL_VAR NAME="current_time"&gt;.&lt;/P&gt;<BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;<BR>
&nbsp;<BR>
&nbsp;<BR>
Alguem pode me ajudar?<BR>
&nbsp;<BR>
Obrigado<BR>                                               <br /><hr />Tijd voor een nieuwe telefoon? <a href='http://www.windows.nl/WindowsPhone.aspx?id=WatIsWindowsPhone' target='_new'>Bekijk de mogelijkheden van een Windows Phone!</a></body>
</html>