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

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to