The example code given in the SYNOPSIS fails as follows:
====cut
mlawren@lifebook:~/src/Mouse-0.22$ perl Makefile.PL
Writing Makefile for Mouse
mlawren@lifebook:~/src/Mouse-0.22$ make
...
mlawren@lifebook:~/src/Mouse-0.22$ perl -Iblib/lib
package Point;
use Mouse; # automatically turns on strict and warnings
has 'x' => (is => 'rw', isa => 'Int');
has 'y' => (is => 'rw', isa => 'Int');
sub clear {
my $self = shift;
$self->x(0);
$self->y(0);
}
package Point3D;
use Mouse;
extends 'Point';
has 'z' => (is => 'rw', isa => 'Int');
after 'clear' => sub {
my $self = shift;
$self->z(0);
};
^D
Method modifiers require the use of Class::Method::Modifiers or
Class::Method::Modifiers::Fast. Please install it from CPAN and file a
bug report with this application. at lib/Mouse.pm line 43
====cut
I don't know if Class:Meth:Mod is not considered a hard dependency, but
if the SYNOPSIS needs it to work, perhaps it should be a 'requires' anyway?
Cheers,
Mark.
--
Mark Lawrence