in reply to Re: Loading/Unloading Modules?
in thread Loading/Unloading Modules?

Thanks for the reply - however the problem with this is that I deally I don't want to have to send a signal or anything each time I change code. Ideally the change over would be seemless - i.e. I copy the new module into place and it is automatically picked up next time that module is actually needed.

This is different to the bot's config file which it reloads whenever I tell it too in the channel (what a good little bot).

Playing around with a few things after everyone's answers I combined replies and came up with a veriant on davidrw's test script that uses Symbol::delete_package as well as deletes the module from %INC. Seems to work so far :)

Now the big test is to get it going within my bot and it's framework.

Thanks for everybodies help.