# one line per array entry, no ouch my @template_txt = split( /\n/, $template->output() ); # all in one scalar, no ouch my $template_txt = $template->output();