One difficulty with doing that (that probably will still exist with Module::Reload) is what to do with objects (triggers, aliases, etc) created by the script. But I'll check what can be done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is easy to reload perl module from kildklient without restart.
For example:
File init.pm (loaded from client):
use Module::Reload;
package init;
sub init {
require "mud.pm";
}
1;
File mud.pm (loaded from init.pm):
package mud;
sub test {
$main::world->echo("22222222");
}
1;
Now we may call \Module::Reload->check() and wahooo! mud.pm reloaded
One difficulty with doing that (that probably will still exist with Module::Reload) is what to do with objects (triggers, aliases, etc) created by the script. But I'll check what can be done.