The only problem with this is that %INC is only populated when you "require", "use", or "do". If the script hasn't already loaded the module, that element will not exist in the %INC hash.
Comment on Re: Re: getting the name of the module in runtime and calling a function from that module