PROCESS block to return a hash not working
Summer <crazysummer2004-/[email protected]> Mon, 20 May 2013 22:54:34 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
Hey All,
I figured this would be easy, but doesn't appear to work.
I am calling some BLOCK -- this block is passed a $key and with that I return some needed items. Because I need a "couple of items" I try to hash it up...
Something like:
BLOCK returnSomeNeededVars;
#do some figuring
{
var1 = 'some value 1',
var2 = 'some value 2',
}
END;
hashHolder = PROCESS returnSomeNeededVars item = someItemToBePassed;
I figured hashHolder would now contain:
{
var1 = 'some value 1',
var2 = 'some value 2',
}
And I could do: hashHolder.var1 and get a value - nope.
A Dumper on it just returns "hash()"
Any ideas?
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates