Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Way to use Moo::Role to extend non-Moo class?

by Arunbear (Parson)
on Nov 13, 2013 at 10:49 UTC ( #1062370=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package bar;
    use Moo::Role;
    ...
        is => 'rwp',
        handles => [qw/foo/], # put other methods to be delegated here
    );
    
  2. or download this
    package Foo::Role;
    sub foo {
        print "foo\n";
    }
    
  3. or download this
    package bar;
    use Moo::Role;
    with 'Foo::Role';
    
    # ... other methods
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2016-06-27 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (337 votes). Check out past polls.