in reply to TestIs hash key a value contained in a hash of arrays?
Or some may suggest grep. I don't. The first() function from Scalar::Util would be better IMO:for (@{$HoA{cluster}}) { print "Matches\n" and last if $value eq $_; }
$found = first { $_ eq 'remap.config.hosts' } @{$HoA{cluster}};
|
|---|