in reply to Re: Why does every value of the array get replaced?in thread Why does every value of the array get replaced?
foreach $G (@array1) { push @Coordinates, grep { /$G/ } @array2 } [download]