I want to check whether a particular word is present in key of hash.
I tried in the following way:
while (($key, $value) = each(%hash))
{
if( $key =~ /\b$some_word\b/ )
{
print"$key contains $some_word \n";
}
}
My question is there any built-in function for the same or is there any alternate method?