Perhaps a more detailed example of your input and desired output would help.
In reply to Re^3: Sliding window perl program by Laurent_R in thread Sliding window perl program by genome