On Thu, May 14, 2009 at 12:23 PM, Matt S Trout <dbix-cl...@trout.me.uk> wrote:
> On Thu, May 14, 2009 at 02:44:31AM -0700, Ovid wrote:
>>
>> ----- Original Message ----
>>
>> > From: Matt S Trout <dbix-cl...@trout.me.uk>
>>
>> > Looking at perldoc Memoized, it can take a subref instead, and returns
>> > the wrapped routine, so:
>> >
>> > __PACKAGE__->meta->add_method('foo' => memoize(sub { __PACKAGE__ }));
>>
>>
>> Thanks Matt. That's what I need.
>
> Hey, Dave, where would it be good to put this in the docs so Ovid knows
> which file to patch?
>
> I figure we want to use this as a specific example of a general thing to
> know in roles, right?

Moose FAQ or add a Recipe ?

-Chris

Reply via email to