my $to_update = { country => 'Lummerland', country_code => 'LUM', ID_country => $inserted }; ok (defined $inserted, '$inserted is defined'); ok ($inserted =~ m/^\d+$/, '$inserted is a numerical id'); my $response = $country->get($inserted);