[cgiapp] Proposal: Change CGI::Snapp's base class from Hash::FieldHash to Moos (sic)

Ron Savage ron at savage.net.au
Sat Dec 8 21:23:39 EST 2012


Hi Mark

See https://rt.cpan.org/Public/Dist/Display.html?Name=Moo

As I said in my last msg on that thread, I'd better re-write the article 
:-((.

On 27/11/12 09:00, Ron Savage wrote:
> Hi Mark
>
> On 27/11/12 01:51, Mark Stosberg wrote:
>> On 11/21/2012 07:46 PM, Ron Savage wrote:
>>> Hi Mark
>>>
>>> On 22/11/12 01:25, Mark Stosberg wrote:
>>>>
>>>>>> What I have now is for Moose and a bit project-specific, but I
>>>>>> plan to
>>>>>> make CPAN-ready Moo-based variants at some point.
>>>
>>> Just for record, you can't use a BUILD sub with Moo. I'm just trying to
>>> write work-around code now, using the construct:
>>>
>>> has x => ();
>>> around 'x' => sub{...}
>>>
>>> But it's a pain.
>>
>> Ron,
>>
>> I'm confused. The docs imply that you can:
>>
>> https://metacpan.org/module/Moo#BUILD
>>
>> Perhaps you mean you can't use one in a Moo Role? I haven't explored
>> that yet.
>
> My mistake. I got confused between different modules' capabilities.
>
> I've finished the article. I will proof-read it again and post it to
> blogs.perl.org this morning.
>

-- 
Ron Savage
http://savage.net.au/
Ph: 0421 920 622


More information about the cgiapp mailing list