in reply to TestIs hash key a value contained in a hash of arrays?

sub is_present { my $cluster = shift; scalar grep {/^\Q$cluster\E\.hosts$/o} @{$HoL{$cluster}}; }

TMTOWTDI is a vast understatement for functions like this

Update: On reflection, I should be testing for equality, not match. I changed the re above to do that, but here is a better way:

sub is_present { my $cluster = shift; scalar grep {$_ eq "$cluster.hosts"} @{$HoL{$cluster}}; }

After Compline,
Zaxo