[Templates] Capturing the output of blocks in hash elements

Randal L. Schwartz merlyn@stonehenge.com
22 Nov 2006 08:02:16 -0800


>>>>> "Clinton" == Clinton Gormley <clint@traveljury.com> writes:

>> Haven't tested, but I bet this works:
>> 
>> data = {};
>> data.output = PROCESS my_block;
>> data.other = PROCESS my_other_block;

Clinton> That does work, but I was hoping to be able to do it in this form:
Clinton>    data = {
Clinton>        output => PROCESS my_block;
Clinton>    }

I'm hoping that some day I'll be six foot tall.  Probably about as
productive. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!