in reply to Question about communicating with a running perl script

My preferred method has been covered already in the previous replies. But there are many forms of Inter Process Communication that you may or may not know about: https://en.wikipedia.org/wiki/Inter-process_communication
  • Comment on Re: Question about communicating with a running perl script

Replies are listed 'Best First'.
Re^2: Question about communicating with a running perl script
by mhearse (Chaplain) on Jul 10, 2015 at 03:02 UTC
    Also, In addition to the other suggested solutions, classic UNIX dogma includes signals. You could add a signal handler to your code. That re-reads and applies the configuration info stored in db. The hangup signal is, by tradition, usually chosen for reloading configs.