in reply to Match within array
I think you'd find walking through your script with the perl debugger instructive. For instance, $i has the scalar value 13006, I'll bet.
Mike
I think what you need is just a hash, using the probe names as keys, and the genes as values. Then your regex match on $probe_ID becomes a simple hash lookup...
Mike
In Section
Seekers of Perl Wisdom