[cgiapp] Proposal: Change CGI::Snapp's base class from Hash::FieldHash to Moos (sic)
Ron Savage
ron at savage.net.au
Mon Dec 10 16:27:14 EST 2012
Hi Mark
Ah, yes. No 'use Moo', means new() is not generated, so you don't end up
with a class.
In the modules for the article, I specifically tried to make my code
both class and role.
On 11/12/12 01:13, Mark Stosberg wrote:
> On 12/08/2012 09:23 PM, Ron Savage wrote:
>> 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
>> :-((.
>
> The summary I see from there is that in a Moo Role, you should do this:
>
> "use Moo::Role;"
>
> not this: "use Moo; use Moo::Role",
> ( which would make the package both a class and a role).
>
> Mark
--
Ron Savage
http://savage.net.au/
Ph: 0421 920 622
More information about the cgiapp
mailing list