logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: virtual methods not work on tied hashes?: msg#00157

Subject: Re: virtual methods not work on tied hashes?
are you using the xs version of Template::Stash or the pure perl version? The xs version is broken as far as dealing with tied hashes, unfortunately.

Chris Ochs wrote:

I have a couple of hashes that are tied hashes to apache::session sessions.
I can access and manipulate them directly via [% hash.key %] or [% hash.key
= 'myvalue' %], but the following from the documentation doesn't work, it
doesnt' see any of the elements:

[% FOREACH key = hash.keys %]
      [% key %] => [% hash.$key %]
   [% END %]


_______________________________________________
templates mailing list
templates-MnLy+PD7ppGDO3lXZvfOKmD2FQJk+8+b@xxxxxxxxxxxxxxxx
http://lists.template-toolkit.org/mailman/listinfo/templates



<Prev in Thread] Current Thread [Next in Thread>