We don't bite newbies here... much | |
PerlMonks |
extract relevent lines according to arrayby coldy (Scribe) |
on Apr 19, 2010 at 07:17 UTC ( [id://835397]=perlquestion: print w/replies, xml ) | Need Help?? |
coldy has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have a file that is of the form given in <DATA> and 3 strings that selects the portion of the file I would like, eg
I would like to creatre an array, @values, consisting of the values in the second column of <DATA> according to my 3 strings ,$chr,$start and $stop. So for my example 3 strings ($chrom='chr1';$start=9839;$stop=9841;), would result in the array @values=(0.007,0.004,0.002) I hope this makes sense? I was hoping somebody may have some ideas to help me out Cheers, Chris
Back to
Seekers of Perl Wisdom
|
|