in reply to Re^2: search an array
in thread search an array

I've answered my own question. The answer I found is
if ("@$_" == "$xpid") {
Sorry for the confusion