...and does it find anything? With previous builds (I have 616 handy), the default install doesn't determine @INC from any values in the Registry and so the primary source for @INC for most users of Win32 Perl is determined from the location of the running perl.exe (or the Perl56.dll file, it appears).

Putting the path in the registry would be a bad idea because it could easily lead to a new install of Perl telling an old install to use the new install's module directories. There are many good reasons to have multiple versions of Perl installed with independant module directories (for example, if you write modules, you want to have a few versions around for testing and sometime you want more than one install of Perl with the same value of $]).

I don't try to keep up on the many, poorly documented details on this. But I'm often installing more than one version of Perl or using a Perl that was installed from a different operating system or was originally installed in a different location. I never make changes in the registry to get this working. I just make changes so that the right perl.exe is found.

I always find Win32 Perl looking for its modules in the directory relative to where the perl.exe is. I never find it looking in a directory that it read out of the registry. Perhaps that has changed since build 616. If so, I think it was a mistake. /:

        - tye (but my friends call me "Tye")

In reply to (tye)Re2: Can @INC be modified using environment variables in Win? by tye
in thread ADD PATH TO @INC by athar-qadri

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.