Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hello muba,

Of course, I could simply ignore the warning, but that doesn't feel clean to me.

For the record, I don’t get a warning, I get a full-blown compiler error:

22:58 >perl -MMyClass -e 0 MyClass already has a metaclass, but it does not inherit Moose::Meta:: +Class (Class::MOP::Class=HASH(0x32b5d20)). at C:\Perl\Strawberry\stra +wberry-perl-5.22.0.1-64bit-PDL\perl\site\lib\Moose\Exporter.pm line 4 +84 Moose::import('Moose') called at MyClass.pm line 4 MyClass::BEGIN at MyClass.pm line 4 eval {...} at MyClass.pm line 4 require MyClass.pm at -e line 0 main::BEGIN at MyClass.pm line 4 eval {...} at MyClass.pm line 4 BEGIN failed--compilation aborted at MyClass.pm line 4. Compilation failed in require. BEGIN failed--compilation aborted. 22:58 >p5u v Moose Moose C:\Perl\Strawberry\strawberry-perl-5.22.0.1-64bit-PDL\perl\sit +e\lib\Moose.pm: 2.1603

Are you using an earlier version of Moose?

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


In reply to Re: [Moose] extends(...) throws "Subroutine redefined" warnings by Athanasius
in thread [Moose] extends(...) throws "Subroutine redefined" warnings by muba

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found