Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 having an uproarious good time at the Monastery: (2)
As of 2025-02-07 21:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.