Hermida, Leandro wrote: > my @books = $schema->resultset->('Book')->all; should be $schema->resultset('Book')->all what you've written is equivalent to my $subref = $schema->resultset(); my @books = $subref->('Book')->all;