Hello folks,

I'm using Template/2.10, Apache/2.0.47, mod_perl/1.99_09, Perl/5.8.1.

The script is running (pasted below), but no output is produced.  I've verified
that the script runs under the apache user and produces valid results when run
command line. 'ref $tt' produces the expected 'Template' when the two commented
lines are un-commented.

Any help?

Thanks,
Rob

The script is:
#!/usr/bin/perl

use strict;
use warnings;

use Template;

my $config = {
   INCLUDE_PATH => '/usr/local/tt2/templates/html',
   };

my $vars = {
   'count' => 3,
   'date' => scalar localtime,
   };

my $tt = Template->new( $config )
   || die Template->error(), "\n";

#print "Content-type: text/html\n\n";
#printf "%s\n", ref $tt;

$tt->process( \*DATA, $vars )
   || die $tt->error(), "\n";

__END__
[% INCLUDE header %]
count: [% GET count%]
date: [% GET date%]
[% INCLUDE footer %]

-- 
 05:48:01 up 19:42,  4 users,  load average: 1.44, 1.30, 1.14

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to