good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Adding code to a Perl program without stopping itby spx2 (Deacon) |
on Apr 04, 2011 at 00:18 UTC ( [id://897261]=note: print w/replies, xml ) | Need Help?? |
Module::Reload->check() basically does:
but only if the modified_time of the package has changed on disk, which is very nice, Module::Reload works properly. However, what if you delete a sub from a module while running the program, the function will remain loaded. That needs to be fixed in Module::Pluggable. I took a look at Apache::StatINC and it does the same as Module::Reload except it does delete the subs that are gone using this:
However, I guess Apache::StatINC can be use only if you're writing a web app deployed using Apache. What if you want to write a non-web app(an IRC bot for example) ? Plack::Loader::Shotgun I wasn't able to check out because I'm not familiar with Plack
In Section
Seekers of Perl Wisdom
|
|