in reply to Translating Module Names to File Names

Sorry, bbfu. $INC{"CGI.pm"}

japhy -- Perl and Regex Hacker
  • Comment on Re: Translating Module Names to File Names

Replies are listed 'Best First'.
(bbfu) (re: %INC) Re: Re: Translating Module Names to File Names
by bbfu (Curate) on Feb 21, 2001 at 03:52 UTC

    Hrm, perhaps you're misunderstanding the purpose of this function. I'm not trying to duplicate the function of %INC. The function is there so you can look up the filenames for modules that you might not want to load.

    An example: I wrote a program that would let you view the source to Perl modules (yes, I know you can just do perldoc -m ModuleName, but this program will do syntax highlighting for you... I plan to post it here before too long, along with the syntax highlighting module I wrote) and it needed to translate the name of the module in Module Name Format to a fully qualified file name.

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.