#!/usr/bin/perl -w use HTML::Template; my $temp = q||; $template = HTML::Template->new(scalarref => \$temp); $template->param(bob=>"bob"); print $template->output; __DATA__ bob