Welcome to the Monastery | |
PerlMonks |
Comparing FILE1 value to FILE2 range and printing matchesby edwardtickle (Initiate) |
on Oct 17, 2014 at 10:07 UTC ( [id://1104164]=perlquestion: print w/replies, xml ) | Need Help?? |
edwardtickle has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I'm very new to Perl and am working on a Bioinformatics project at University. I have FILE1 containing a list of positions, in the format:
And FILE2 in the format:
I want to compare every position in FILE1 to every range in values on FILE2, and if a position falls into one of the ranges then i want to print the position, range and direction. So my expected output would be:
Currently it will run with no errors, however it doesn't output any information so i am unsure where i am going wrong! When i split the final 'if' rule it runs but will only work if the position is on exacly the same line as the range. Any help would be much appreciated. I have posted the same question on Stackoverflow as i'm after a fairly urgent answer. My code is as follows:
Back to
Seekers of Perl Wisdom
|
|