in reply to Communicating with a long-running process
perldoc perlipc will give you lots of help and examples. If both processes are running on the same machine (and you're on a *NIX) you probably want to use a Unix domain socket instead of a TCP connection, that's both faster and simpler.
You could also use shared memory variables for this, see IPC::Shareable and IPC::ShareLite, for example.
|
|---|