in reply to Re: Translating Module Names to File Names
in thread Translating Module Names to File Names

Ah, yes. @INC can be modified at run time. And a `perldoc -l $module` wouldn't pick that up, now would it? So there ya go, chipmunk, Maclir agrees with me. ;-)

Anyway, thanks for your perspective, Maclir (and chipmunk too!). I was suddenly afraid I was doing something stupid. =)

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

  • Comment on (bbfu) (@INC can be modified at run time) Re: Re: Translating Module Names to File Names
  • Download Code

Replies are listed 'Best First'.
Re: (bbfu) (@INC can be modified at run time) Re: Re: Translating Module Names to File Names
by Maclir (Curate) on Feb 21, 2001 at 05:08 UTC
    Well, I would not go so far as saying "And a `perldoc -l $module` wouldn't pick that up, now would it?". I guess it all depends on how that process is spawned - I would have thought it ran in the same shell environment (but what do I know?)

    Maybe someone should test it and see?

      I'm pretty sure the @INC array isn't included in the shell environment. If it is, of course, it would probably pick it up. But I'm pretty sure that @INC (especially changes made within a script) are not propagated down to spawned child processes.

      Of course, as always, I could be wrong. =)

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