in reply to Re^6: searching two pattern sequentially from one file
in thread searching two pattern sequentially from one file
this code is doing many things ... couldnt debug what mistake i am doing
These two statements are not unrelated. There are various aspects of your code as it stands which will hinder debugging. The main one is that it is monolithic - if you were to split out the various parts into subs it would help to isolate problems and allow for simpler testing.
Other potential pitfalls include:
Writing quality code isn't easy but having put the effort in (even just using the tools I've mentioned) it does make debugging, testing and maintenance so much easier.
Good luck with your ongoing debugging.
|
|---|