basically : an object IS a (blessed) hash. http://perldoc.perl.org/perlboot.html
You kind of need to understand this, if you don't already. It's worth having a read through the tutorials. D On 3/13/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote:
From: "Simon Wilcox" <[EMAIL PROTECTED]> > I just put the object in the stash. TT abstracts the method/hash key > accessor issue for you so that [% obj.name1 %] will work whether obj is an > object with a name1 accessor or a hash with a name1 key. > Ok, then I will use that way. I hoped that the first solution could be possible, because I don't want to use [% obj.name %] but only [% name %] if it works. Octavian _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
-- Daniel McBrearty email : danielmcbrearty at gmail.com www.engoi.com : the multi - language vocab trainer BTW : 0873928131 _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/