print"Enter file name having sequences:"; $filename=; chomp $filename; print"Enter file name having primer list:"; $primerfile=; chomp $primerfile; open(PRI,$primerfile) or die"can't open $primerfile"; @primerList=; open(FNM,"$filename") or die"can't open $filename"; @f1=; $f=join('',@f1); @fnew=split(/>/,$f); $len=scalar@fnew; for($k=0;$kseqHavingPrimer_".@primerList[$k].".txt") || die"Can't open seqHavingPrimer_@primerList[$k].txt\n"; for($i=1;$i<$len;$i++) { $sequence=""; @fnew_seq=split("\n",@fnew[$i]); for($j=1;$j@fnew[$i]"; @fnew[$i]=""; print"match found... in seqHavingPrimer_@primerList[$k].txt\n"; $seq_i=length($sequence); } $match=0; } } else { if($sequence=~/@primerList[$k]/) { print PAGE ">@fnew[$i]"; @fnew[$i]=""; print"match found... in seqHavingPrimer_@primerList[$k].txt\n"; } } } #close PAGE; } open(PAGE2,">seqLackingPrimer.txt") || die"Can't open seqLackingPrimer.txt"; for($i=0;$i@fnew[$i]"; } } print "Total primer=$k";