This is a small part of code from a larger script, but is the main part. I get the same err msg (Can't call method "output" on an undefined value) in a browser and from the shell command line (Can't call method "output" on an undefined value at ./temp.cgi line 11.). I know Text::FastTemplate is working in general b/c it works on all my PHP scripts. Just this one Perl script it does not like for some reason. Running Perl 5.8.8 on centos.
$templatedir = '/home/virtual/site/data/cgi-templates';
$filename = 'customer.tpl.html';
print "Content-type: text/html\n\n";
$template = new Text::FastTemplate(file=>$filename, path=>$templatedir);
print $template->output(); <-- the line giving the err msg