[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: interpolation



K. I found Text::Template and have it working, mostly. My question now is. the below script works as a droplet, and script, but fails as a cgi on $template->fill_in();. All it tells me is that it died

le meas,
--nick

#!perl -w
require Text::Template;
$file = "blah.html";
print "content-type: text/html\n\n";
@delimiters = ('<!--', '-->');
$delimiter_ref = \@delimiters;
$template = new Text::Template (
     TYPE => FILE,
     SOURCE => $file,
);
$template->fill_in(
     PACKAGE    => 'main',
     OUTPUT     => \*STDOUT,
     DELIMITERS => $delimiter_ref,
) or die $Test::Template::ERROR;
__END__

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org