Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Moose role with requirement consuming another role

by Boldra (Deacon)
on Jul 20, 2011 at 09:45 UTC ( #915620=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Role::Logger;
    use Moose::Role;
    ...
    package main;
    use Moose;
    App::FixIt->new( { smeg => 1 } )->run;
    
  2. or download this
    package Role::App;
    use Moose::Role;
    ...
    use Moose;
    with Role::App;
    has gazpacho => ( is => 'rw' );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://915620]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2019-09-21 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (273 votes). Check out past polls.

    Notices?