in reply to passing the parameters from one perl code to another.

You want some form of Interprocess Communication (IPC). Perhaps you should look at perlipc? IPC::Open3 might be useful.
  • Comment on Re: passing the parameters from one perl code to another.