Not a developer? Go to


Inspecting and Manipulating Object State


Use column_values and set_values to get and set the fields of an object en masse. The former returns a hash reference mapping column names to their values in this object. For example:

$values = $obj->column_values()


set_values accepts a similar hash ref, which need not give a value for every field. For example:

$obj->set_values({col1 => $val1, col2 => $val2});

is equivalent to