Hi, I'm using Module::Pluggable to give a program plugin support. Basically, I'll have a directory full of .pm files and I want them to be loaded and instantiated. That's all well and good, however all the examples at http://search.cpan.org/dist/Module-Pluggable/lib/Module/Pluggable.pm seem to presume that you know the path at code-writing time, which isn't the case for me. Basically what I have is the path to the plugins being passed in when my own PluginMgr class is being instantiated, and then I want to give that information to Module::Pluggable and have it load them all up for me.
How can I do this? Or perhaps do it in a different way by manually running through the directory and "require'ing" each file. The problem I have with that method is that I don't know how to get the class name out so that I can then instantiate it. -- Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]> Hostes alienigeni me abduxerunt. Qui annus est? PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
pgpFRqbVKywvn.pgp
Description: PGP signature
