/usr/share/doc/libmouse-perl/examples/warns.pl is in libmouse-perl 2.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/usr/bin/perl
package Point;
use Mouse;
use MouseX::StrictConstructor;
# extra 'unknown_attr' is supplied (WARN)
has 'x' => (isa => 'Int', is => 'rw', required => 1, unknown_attr => 1);
# mandatory 'is' is not supplied (WARN)
has 'y' => (isa => 'Int', required => 1);
sub clear {
my $self = shift;
$self->x(0);
$self->y(0);
}
__PACKAGE__->meta->make_immutable();
package main;
# extra 'z' is supplied (FATAL)
my $point1 = Point->new(x => 5, y => 7, z => 9);
|