What are common pitfalls or gotchas with Mouse?

Common pitfalls or gotchas with Mouse, a lightweight object system for Perl, include issues with method resolution order, inheritance complications, and mutable attributes. These can lead to unexpected behavior if not handled properly.
Mouse, Perl, object system, inheritance, attributes, method resolution order, pitfalls, gotchas
# Example of a common gotcha with Mouse package My::Class { use Mouse; has 'value' => ( is => 'rw', isa => 'Int', ); sub increment { my $self = shift; $self->value($self->value + 1); } } package main; my $obj = My::Class->new(value => 5); $obj->increment(); print $obj->value; # Output will be 6, but be cautious with mutable attributes!

Mouse Perl object system inheritance attributes method resolution order pitfalls gotchas