package ABC; use Moose; has 'container' => ( is => 'rw', isa => 'ArrayRef', default => sub { return [ 0..10 ] }, traits => [ 'Array' ], handles => { get_piece_by_id => 'get', # funktioniert # die folgenden funktionieren nicht get_color => sub { return shift->get_piece_by_id(0)->{color}->[0]; }, set_color => sub { shift->container->[0]->{color}->[0]) = shift; # leider kein set }, }, );