in reply to Update a perl script when its running

If the program is already running and it's not written in a way to handle changes in its source code, you're out of luck.

You can prepare the program to react to code changes, though. For example, you can make the child processes to read their source from a file every time and eval it (and maybe check the timestamp before to speed it up). Usual cautions about eval apply.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Update a perl script when its running

Replies are listed 'Best First'.
Re^2: Update a perl script when its running
by marto (Cardinal) on Feb 10, 2015 at 11:02 UTC

      There's also Coding for OpenGL "live"

      Instead of reloading and recompiling the code before rendering each frame, you can reload and recompile between each job.