in reply to Sharing variables between applications

See perlipc.

As IPC usually is a nasty thing, I recommend using a database or a directory as a communication device. This means both of your programs need to poll the shared structure for new messages arriving.

You could also use a TCP socket for communication, but that means you will need to ensure that the port used is not occupied by another program.

Potentially also see AnyEvent::MP for a way to send messages between programs.

  • Comment on Re: Sharing variables between applications