Aim wrote: > Dear members, > > I have a problem with a perl script pasted below. Since it is not a > short script I was reluctant to paste all of it but then I thought it > may be easier to understand if I pasted all of it. I greatly welcome any > recommendations to refine the script (I predict many of you will have > something to say about it), but my main concern is where it is going > wrong? Below is part of the output, A and B. Snip A is ok but lines in > snip B starting with "B: nomatch>" are wrong, which is why half of these > lines are empty. Lines with "nomatch>" are expected but on manual > inspection some are incorrectly labelled as such, including some of the > B: lines I have here. I have included some parts of the input files > after the script. Since it is a lot to take in I thank you all in > advance for giving it a shot of any sort. I have tried but I cannot get > my head round where I have made the mistake(s). > > Cheers. Aim.
Hi Aim, It is hard to say what is going on here. It will become progressively more difficult, ranging to impossible, as your task becomes larger without functional decomposition. The material you are working with is sophisticated science. You simply cannot do justice to the complexity of the processes while keeping them all in one lexical and procedural scope. I'm fatalistic. People rarely actually take my advice. I'm going to give you some anyway. Suspend this project, and work on the process of organizing your task into named subroutines. You have better things to do with your mental powers than trying to keep track of how one line of code is going to interact with hundreds or thousands of others. This might delay your project somewhat, but in the long run, it will speed your work dramatically. Break your problem down into manageable chunks. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]