Template Objects
use Template3; my $template = Template3->template( text => 'Hello [% name %]', ); print $template->fill( name => 'Badger' );
Thus Spake Andy:
The template() method can be used to fetch a template object. You can
then pass it around and call its fill() method to generate output.