in reply to Hi Perlmonks, I have need to write a script to do the following

Well, do it then. If you have problems with a particular step, you can ask us. But perlmonks is no "we write the code for you" service.
  • Comment on Re: Hi Perlmonks, I have need to write a script to do the following