Re: Need Suggestions For Managing Lists Of Attributes
[email protected] (Chris Weyl) Thu, 10 Apr 2014 14:02:34 -0700
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CABSyATHbnJ1_+9OP5DuqCbn-NKLYWmfm+DAdhH6RG74Q2P186Q@mail.gmail.com> |
On Wed, Apr 9, 2014 at 5:52 PM, Thalhammer, Jeffrey Ryan < [email protected]> wrote: > The only idea I have come up with so far is to declare the various > method/attribute lists in some other module completely, and then load them > into the Role/Class as needed. I can probably make that pretty using > Moose::Exporter or Import::Into, but it basically boils down to global > variables. Again, icky. > > Can you suggest a good way to handle this? Or maybe convince me that I'm > doing it all wrong anyway? > Perhaps a parameterized role? That would be easy to generate, erm, "concrete" roles with. -Chris -- Chris Weyl Ex astris scientia