* giorgos zervas <[EMAIL PROTECTED]> [2002-04-26 09:36]: [-- snip --]
> but, when i try in the template to access an object method like: > > [% myhash.keys.0.id %] > > i get an error in my logs: > "don't know how to access [My::Object=HASH(0x957bf20) ].id" > > "id" is a valid method of My::Object so the problem doesn't lie there. Because the parser thinks the the 0 of "[% myhash.keys.0.id %]" indicates an array reference, which is usually does. In your first example, it just needs to be returned, so it doesn't matter what it is; in the second case, it has to be dereferenced, so TT uses some heuristics to determine what type of reference it thinks you mean, finds an integer, and assumes an array. (darren) -- It is the unbelievers that are the religious fanatics. A man does not protest and preach that the sun rises in the east. He already believes it. It is the unbeliever who must do this in order that others validate the unbelievers faith.
