[Templates] Stash vs Stash::XS unexpcted behavior with blessed objects
Vivek Khera
khera at kcilink.com
Thu May 22 14:47:45 BST 2008
On May 21, 2008, at 8:56 PM, David Graves wrote:
> What this code does, is force the use of the perl Stash, and tries to
> pass "foo" as a blessed hash ref. Because it is blessed, Stash.pm
> doesn't think its a HASH and tries to call method bar, instead of
> setting the named value bar. Stash::XS doesn't know its blessed and
> works as expected.
>
I'd say the XS stash has it wrong, and the perl stash behaves as
expected. If foo is blessed, then foo.bar is the method bar() not the
hash element bar.
More information about the templates
mailing list