[Templates] Getting keys from a hash

Karl Dane karl at rince.net
Tue Feb 26 11:53:29 GMT 2008


No wonder I came a cropper!

I'd kinda ignored the CGI aspect, as usually if you've got something 
more than just a plain and simple data structure it shows up as such in 
Data::Dumper. Since it looked like a plain old hash, I treated it as a 
plain old hash.

Thanks again, everyone!

Karl


Clinton Gormley wrote:
>> Tied variables behave strange in some aspects, and I guess this is one
>> of them.  I think that TT gets stuck when trying to find out whether
>> cgihash is an object which implements a 'keys' method or a hash which
>> should respond to the 'keys' vmethod.
> 
> action at a distance.  nasty...
> 
> 
> _______________________________________________
> templates mailing list
> templates at template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates



More information about the templates mailing list