Re: [Templates] hash.keys not working on blessed hash?

[prev] [thread] [next] [Date index for 2004/12/15]

From: Andy Wardley
Subject: Re: [Templates] hash.keys not working on blessed hash?
Date: 18:57 on 15 Dec 2004
Thomas, Mark - BLS CTR wrote:
> It looks like foo.keys returns nothing if foo is blessed into a class. Is
> there a workaround for this? Thanks.

Stephen Howard sent me a patch for Template::Stash which fixes this.
It is applied but currently disabled, in Template::Stash around line
661, so you can (un)comment the relevant sections and it will work (as
long as you're not using the XS stash).

I forget now why the patch isn't enabled by default.  Perhaps it causes
some tests in the test suite to fail, or maybe it's because it only works
in the Perl stash and not the XS stash.  

I do know for a fact that this is fixed and working in TT3. 

A

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] hash.keys not working on blessed hash?
Thomas, Mark - BLS CTR 13:57 on 15 Dec 2004

RE: [Templates] hash.keys not working on blessed hash?
Thomas, Mark - BLS CTR 17:06 on 15 Dec 2004

Re: [Templates] hash.keys not working on blessed hash?
Andy Wardley 18:57 on 15 Dec 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52