laziness, impatience, and hubris | |
PerlMonks |
Re: Adding code to a Perl program without stopping itby TomDLux (Vicar) |
on Mar 27, 2011 at 16:40 UTC ( [id://895773]=note: print w/replies, xml ) | Need Help?? |
If you're running on Unix, you can send a signal (kill) which your process catches. The signal handler reads a file which contains a list of modules and versions which should be loaded, and compares those with what actually is loaded, and loads / reloads the missing ones. On the other hand, loading your whiz-bang "Divide-by-zero" module is little benefit if there are no calls to it. As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In Section
Seekers of Perl Wisdom
|
|