You have not posted any code, so it is going to be very difficult for anyone to tell you where the problem is. Please read How do I post a question effectively? and the PerlMonks FAQ if you have not already done so. Please supply an example of your code that exhibits this behaviour.