It looks like you Know about Bioinformatics.i started to do it and i
red the book that Beginning Perl for Bioinformatics.but i think ,i
should read some more books or online documents about it so can you
sggest me some name .
amazon.com
search for books with "perl bioinformatics"
what will be value of $sequence and $match1 ,$match2.
an example with the data you provided previously:
$sequence = "ASDFGHJKLOIUYTREWQ";
$match1 = "ASD";
$match2 = "HJKL";
($gap) = $sequence =~ /$match1(.+?)$match2/;
#$gap now contains "FG";
and if i have more than 1 gap in my sequence then is it find that too
or i have to put in a loop or something.
thanks
yes, you need a loop, I haven't dealt directly with BLAST output for a
long time now so I'm not sure how it represents alignment gaps, I think
it uses '-', so you would need to split on that.
I suggest you do some more reading about Perl before actually building
production code.