Re: Accessor methods questions
[email protected] (Gunnar Strand)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CAEsF1LsSgmrebHjK4Pz+8d6KtzXWtR6AvZOrG7sNiV1STSKpmg@mail.gmail.com> |
2011/8/21 Nick Perez <[email protected]> > On Sun, 21 Aug 2011 22:27:59 +0200 > Gunnar Strand <[email protected]> wrote: > > > > Perhaps the pattern is that if an accessor must store a value.... > -SNIP- > > No, this is overly complicated. 'has()' is just a sugar function to > install an accessor into your class. This accessor's behavior (and what > methods are generated) are controlled by the arguments given to > 'has()'. There really is nothing magical going on here. I promise. > Aaa, now it all makes sense. I was stuck in the loop thinking I could implement the accessor methods myself. > Barring that, bugging people in IRC probably makes more sense as it is > more interactive than doing email. You can also search the archives of > this mailing list for answers to more general Moose usage questions. > Yes, but also more difficult to convey clear meaning since sometimes verbosity is needed. Thanks for shedding light on this. BR Gunnar