Basically I dont know how to loop through the lines after the line that matches the $chrom condition so I can test if those lines where $start > $swhile(my$line=<DATA>){ if ($line=~m/$chrom/){ #not sure how to move to the next few lines of <DATA> +where I can test that $s<$start my ($s,$prob)=split(/\s+/,$line); if ($s<$start) { next; } else{push @values,$prob;} } }
In reply to Re^2: extract relevent lines according to array
by coldy
in thread extract relevent lines according to array
by coldy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |