Ok, I have written a perl script, and it works fine on my machine and on the machines of several others who have tested it. So I know the script itself works flawlessly.

However, now it is going through another stage of testing, and whenever the testers try to run it, they get errors like "Cannot find strict.pm..." (yes, really!)

The same error happens with every other module. Every time I use use, the script crashes.

Now, with strict, this isn't really a problem, since it can be harmlessly yanked out once the code is no longer being developed. But I still think it's just bad form -- I've got a lot of coworkers who don't like strict, and I'm trying to set an example :). Also, there are other modules that are fairly important to the script which I'd really like to have (I don't want to roll my own File::Path, thank you very much!).

I need a little insight into some of Perl's inner mojo. I know it uses @INC as a search path for importing modules, but how does @INC get built? How can Perl possibly not know where to find modules that are part of the standard distribution? Is there anyway to tell Perl where to look for those files?

Thanks in advance.

If you have any trouble sounding condescending, find a Unix user to show you how it's done.
- Scott Adams


In reply to Can't find any modules by DeusVult

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.