>>>>> ""Thomas," == "Thomas, Mark <- BLS CTR" <[EMAIL PROTECTED]>> writes:

"Thomas,>     [% FOREACH key = hash.keys %]

...

"Thomas,> What happens is the Dumper correctly dumps the data structure (which is
"Thomas,> actually a Template::Stash::XS object), but the FOREACH doesn't see the
"Thomas,> keys. Does FOREACH ignore a blessed hash?

If hash is blessed, then .keys is $object->keys, not keys %$hashref.
There's no easy way to peer inside an object with TT.

You know, you're trying to do too much non-view code in TT.  You should
do it in Perl, and then hand the result to TT to view.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <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!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to