http://qs321.pair.com?node_id=187462

Ashcrow has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I am writing a small app that needs to be able to use modules on command. Each module has the same set of subs but they all do their duties diffrently. The problem I am facing is that I seem to be able to only require a file once. For instance:
# Both modules have todo(); require "/path/to/something.pm"; # sets todo() require "/another/pathto/diffrent.pm"; # overwrites todo() require "/path/to/something.pm"; # doesn't do anything
still leaves me using the diffrent module. How can I reload a module? Please enlighten me!