Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: [Moose] extends(...) throws "Subroutine redefined" warnings

by muba (Priest)
on Oct 07, 2015 at 12:48 UTC ( [id://1144055]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # MyClass.pm
    package MyClass;
    ...
    
    our @ISA = qw(BaseClass); # have all BaseClass methods work on MyClass
    1;
    
  2. or download this
    # BaseClass.pm
    package BaseClass;
    ...
        return SubClass->new;
    }
    1;
    
  3. or download this
    # SubClass.pm
    package SubClass;
    ...
    extends 'BaseClass';
    
    1;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1144055]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-18 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found