You hit the nail on its head, as I already admitted in my post(that appeared as an anyonymous monk) and is related to the problem I describe here, I am NOT a perl Guru and my knowldge of PERL can be best described as elementary.
I have tried to give a better description of the problem in a reply earlier. I hope that might enable you to suggest something that I can do to tackle this problem.
Thanks very much.