Hi monks,, I am trying to iterate each element of one array to see if it is found in the other array and print only if it is found but i dont understand where i went wrong, all my array values are printing
do
{
if(grep($genes[$index],@gl))
{
print O "$genes[$index]\n";
$index++;
}
else
{
$index++;
}
}
until($index==@genes);