[Catalyst] putting an object in the stash
Daniel McBrearty
danielmcbrearty at gmail.com
Tue Mar 13 11:32:25 GMT 2007
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 <orasnita at gmail.com> wrote:
> From: "Simon Wilcox" <simonw at digitalcraftsmen.net>
>
> > 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 at 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
More information about the Catalyst
mailing list