in reply to Re: Executing functions from another process
in thread Executing functions from another process
Conceptually I understand how this could be done, but I have two problems with this proposed solution. In my full application, the actual functions being executed are not even defined in the same script. They get pulled in via a do() call to another script. It would be a maintenance headache to maintain a dispatch table in this script. It's much easier to simply get the function name and execute it as a function ref.
The second problem is more practical. The prototypes of functions that get called are all different. Some have no args, some have one scalar, others have multiple array refs, etc. How could I set up a generic JSON message to convey such a varying list of parameters?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Executing functions from another process
by Corion (Patriarch) on Jan 23, 2014 at 19:29 UTC | |
by gri6507 (Deacon) on Jan 23, 2014 at 19:54 UTC | |
by Corion (Patriarch) on Jan 24, 2014 at 07:29 UTC | |
by Anonymous Monk on Jan 23, 2014 at 23:09 UTC | |
by davido (Cardinal) on Jan 23, 2014 at 23:30 UTC | |
by gri6507 (Deacon) on Jan 24, 2014 at 15:09 UTC | |
|
In Section
Seekers of Perl Wisdom