Part of output into variable

"Kiss Gabor (Bitman)" <kissg-8/[email protected]> Wed, 24 Sep 2014 14:24:17 +0200 (CEST)
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
Dear folks,

Is it possible to catch output of a BLOCK and to assign
it to a scalar variable for later use?
(And the same but without writing Perl code? :-)
Any hints will be appreciated.

Gabor