# Various stuff above to use Class::DBI and set it up # verified to work by retrieving # Put the validated fields into the DB # New, unique ID number is automagically generated # if needed my $hashref = $results->valid; my %hash = %$hashref; my $foo = $hash{'id'}; carp "ID is: $foo "; my $entry = Contacts->find_or_create( id => $foo ); $entry->$hashref; # this doesn't work $entry->dbi_commit(); $entry->update;