good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: count total number of occurrence in all filesby BillKSmith (Monsignor) |
on May 10, 2016 at 11:58 UTC ( [id://1162621]=note: print w/replies, xml ) | Need Help?? |
Thank you for accepting Discipulus's advice about posting readable examples. Your new question implies that it is possible for two records to have matching sequences (second line), but different ID's (first line). Neither your example nor your code tell us what output you expect in this case. (If this is not possible, you should match only on the much shorter first line.) I see that your code uses my suggestion for parsing the fourth line. Unfortunately, this does not work for your new data files (There is no colon to split on). It is not likely that we can tell you what is wrong with your code until you post code and data that allow us to reproduce your results.
Bill
In Section
Seekers of Perl Wisdom
|
|