if i use the array entry probes1 it doesn't work, but if i assign a variable to the same exact value 204508_A_ST and use that instead, it does. is there something i am missing regarding the array probes entry?open INDAT, "file1" or die "$!"; my @array; my @probes; while (<INDAT>){ @array=split/\t/; open INCOMP, "file2" or die "$!"; while (<INCOMP>){ @probes=split/\t/; if ($array[0]=~/$probes[1]/i){ print $probes[1];#or whatever else } } close INCOMP; }
In reply to beginner regex question by natoikos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |