Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Adding a method to an existing object

by chromatic (Archbishop)
on Feb 13, 2012 at 02:50 UTC ( [id://953384]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub create_with_roles
    {
        my ($class, $roles, %args) = @_;
    ...
        Moose::Util::ensure_all_roles( $class, @$roles );
        return $class->new( %args );
    }
    
  2. or download this
    my $app = MyApp->create_with_roles(
        [qw( List Of Role Names )],
        %constructor_arguments
    );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://953384]
help
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: (6)
As of 2024-03-28 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found