tondaqakin has asked for the wisdom of the Perl Monks concerning the following question:

Is somebody familiar in this? I have an executable standalone PERL environment allowing calling routines/parts of original environment/ via command prompt. I can start my own standalone executable script by ‘system’. How can I call in my script these routines from original environment? To use ‘system’ does not work for these calls, but allows me to compile my script at least, because I have not other access to original routines, just their names.
  • Comment on call routines by exe script in exe script

Replies are listed 'Best First'.
Re: call routines by exe script in exe script
by Anonymous Monk on Mar 10, 2010 at 15:58 UTC
    you can't

      Which is to say you can't call a sub in a different process using conventional means, but there are other means of doing so. What the OP asked about is generically called Remote Procedure Call. And RPC isn't even required. The process can also receive more generic work requests (as opposed to function call requests) via a number of means including sockets (Inter-Process Communication).

      OP, this is a huge topic. You'll need to specify a lot more information.

        I am not sure if it is RPC, because I need to run my execution in this 'parent' exe environment. But I try to find how it is working. Thank you.