in reply to Re: Is dynamic loading of pm's a bad thing?
in thread Is dynamic loading of pm's a bad thing?

Hi,

Thanks for your suggestion. I had a look at Module::Locate, but I'm not sure I quite understand how it works.

Does locate $mod do what was suggested in one of the above posts and change a blah::blah string into a blah/blah.pm string then see if that pm exists? If so, does this mean that I don't have to worry about the fact that $mod is user defined cos unless the path actually corresponds to a pm file then locate'll fail?

Thanks again,

Cxx

  • Comment on Re^2: Is dynamic loading of pm's a bad thing?

Replies are listed 'Best First'.
Re^3: Is dynamic loading of pm's a bad thing?
by broquaint (Abbot) on Jun 29, 2004 at 03:09 UTC
    What it does is searches for a given module in the library path i.e it will find the path to the blah::blah module, or return false. Under the covers it will munge blah::blah into the appropriate format. And yes, you don't have to worry that $mod is user defined, if it exists in the path, you will get that path returned, otherwise, false.
    HTH

    _________
    broquaint