On 2013-01-23 10:27, William Blunn wrote: > my @fields_to_update = grep { $hash->{$_} } @fields; Be aware that it skips any false value, like undef, '', '0', 0. -- Ruud