#!/usr/bin/perl use strict; use warnings; use Template; my $data = { name => 'Ovid' }; my $template = Template->new; my $output; $template->process(\*DATA, $data, \$output); print $output; __DATA__ Hello, [% name %]
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Template Toolkit output to a scalar?
by Ovid
in thread Template Toolkit output to a scalar?
by theguvnor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |