On 8 Sep 2009, at 17:11, Jesse Luehrs wrote:

On Tue, Sep 08, 2009 at 05:08:07PM +0100, Mark Blackman wrote:
Hi,

A quick question on recommended practice here.

One of my Moose-using package attributes is a hash reference.

What's the recommended accessor technique for a key in that hash if
I want a dedicated accessor/mutator for that key? a dedicated method?
or something Moose-y?


If you check out the latest (development) release, the Native attribute
traits that we just added should do exactly this. We should be getting
an actual release with this out within the next few days. If you need
this now, the code came mostly from MooseX::AttributeHelpers, which
should continue to work.

Very nice. thanks!

- Mark

Reply via email to