Extremely possible. You could do it via any number of methods mentioned in perldoc perlipc -- named pipes, sockets, anonymous pipes via fork.
I'd look into named pipes, in this case, as they're extremely simple to use (if you're on a Unixy machine), and don't require learning or doing many new things. (Not that learning is bad, but start simple.) | [reply] |
If the "already running" script can be strictly in a "serve all comers" mode, and not working on things independantly, you can create a "mini-web-server" using
a couple of my WebTechniques Perl Columns as examples: in particular the ones on "the doctor is in (part 1/2)".
As a remote procedure call protocol on top of that, consider SOAP or
WDDX, both in the CPAN.
-- Randal L. Schwartz, Perl hacker | [reply] |
| [reply] |
Not sure if this is exactly what you want, but using sockets (and IO::Socket) may be a possibility. Look at Chapter 17 of the "Perl Cookbook". | [reply] |