in reply to My script is working fine on linux but it's not working on the Windows

Pardon me... but I don’t think that you are listening to us all.

Am I saying these things merely because “I am pissed-off at you?”   Frankly, no.   But there is a right way to go about availing yourself effectively of the PerlMonks resource, and it makes a big difference to your success.   “You want help.   We want to help you.   Learn How.