Mouse::Object - we don't need to steenkin' constructor
Instantiates a new Mouse::Object. This is obviously intended for subclasses.
Calls "BUILD" on each class in the class hierarchy. This is called at the end of "new".
You may put any business logic initialization in BUILD methods. You don't need to redispatch or return any specific value.
Lets you override the arguments that new takes. Return a hashref of parameters.
new
Calls "DEMOLISH" on each class in the class hierarchy. This is called at "DESTROY" time.
You may put any business logic deinitialization in DEMOLISH methods. You don't need to redispatch or return any specific value.
This will check if the invocant's class "does" a given $role_name. This is similar to "isa" for object, but it checks the roles instead.
$role_name
From the Moose POD:
C'mon, how many times have you written the following code while debugging: use Data::Dumper; warn Dumper $obj; It can get seriously annoying, so why not just use this.
The implementation was lifted directly from Moose::Object.
To install Mouse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mouse
CPAN shell
perl -MCPAN -e shell install Mouse
For more information on module installation, please visit the detailed CPAN module installation guide.