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.
In reply to Re: Communicating with a long-running process
by tirwhan
in thread Communicating with a long-running process
by Marcello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |