Convert a DBIx::Class::Result into a hash
问题 Using DBIx::Class, I found a solution to my issue, thankfully. But I'm sure there has to be a nicer way. my $record = $schema->resultset("food")->create({name=>"bacon"}); How would I turn this record into a simple hashref instead of having to make this call right after. my record = $schema->resultset("food")->search({name=>"bacon"})->hashref_array(); Ideally I want to be able to write a code snippet as simple as {record=> $record} instead of {record => {name => $record->name, $record->food_id