afaik, both lists and hashes are always arrayrefs and hashrefs. there
are no 'flat' data structures other than scalars in TT. Given that, it
would not make much sense as a default behavior to unref a hash to pass
it to a function. since %$hash, iirc, makes a copy of the data
structure, which could potentially be quite large.
Peter Kay wrote:
Question 2:
I want to pass %another_hash from List.tt2 to
writeHTML(). If I try writeHTML(another_hash), then I
don't get it as a flat hash ('colour' => 'Green',
etc...) but as a reference to a hash. Can I "expand"
it in any way?
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates