Thanx for the rejoinder. I really appreciate. Now the requirement is clear to me. Let me work on it and come up with some code.
However, it would be very kind of you, if you can direct me to more low level design. I mean in which machine perl script should be executed, how should I process inputs in STDIN. Should the window should be created by perl script.Frankly speaking, picture is not crystal clear to me.