[WindyCity-pm] [Chicago-talk] How to get rid of Moose warnings?

Sean Blanton sean at blanton.com
Fri Dec 18 08:08:23 PST 2009


I had 'use Moose' but then 'no moose'...Changed it to 'no Moose' and that
got rid of the warnings.
Thanks!


On Fri, Dec 18, 2009 at 9:51 AM, Randal L. Schwartz
<merlyn at stonehenge.com>wrote:

> >>>>> "Sean" == Sean Blanton <sean at blanton.com> writes:
>
> Sean> I'm getting the following warnings, which I'd like to get rid of...
> Sean> Subroutine throw_error redefined at C:/Perl/site/lib/moose.pm line
> 39.
> Sean> Subroutine extends redefined at C:/Perl/site/lib/moose.pm line 45.
> Sean> Subroutine with redefined at C:/Perl/site/lib/moose.pm line 56.
> Sean> Subroutine has redefined at C:/Perl/site/lib/moose.pm line 60.
> Sean> Subroutine before redefined at C:/Perl/site/lib/moose.pm line 72.
> Sean> Subroutine after redefined at C:/Perl/site/lib/moose.pm line 76.
> Sean> Subroutine around redefined at C:/Perl/site/lib/moose.pm line 80.
> Sean> Subroutine super redefined at C:/Perl/site/lib/moose.pm line 88.
> Sean> Subroutine override redefined at C:/Perl/site/lib/moose.pm line 95.
> Sean> Subroutine inner redefined at C:/Perl/site/lib/moose.pm line 101.
> Sean> Subroutine augment redefined at C:/Perl/site/lib/moose.pm line 115.
> Sean> Subroutine init_meta redefined at C:/Perl/site/lib/moose.pm line
> 132.
> Sean> Subroutine _get_caller redefined at C:/Perl/site/lib/moose.pm line
> 228.
>
> Sean> I'm using plain vanilla Moose and diligently using 'no moose;' at the
> end of
> Sean> each of my 8 classes.
>
> You appear to be on windows.
>
> You *are* being careful to say:
>
>  "use Moose"
>
> and not
>
>  "use moose"
>
> correct?  The latter kinda works, but will break things later.
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside
> discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/windycity-pm/attachments/20091218/00f31691/attachment.html>


More information about the WindyCity-pm mailing list