The use and require functions will search directories in your @INC array to find a requested file. Perl is just telling you it couldn't find the particular file. I can think of at least three possible problems, and ways to solve them:

  1. The module is really not installed on the box. Find and install it.
  2. The module is installed, but the directory is not in @INC. Two possible remedies: either add a
    use lib '/where/it/is';
    to your code to give Perl an additional directory to search, or set the PERL5LIB environment variable the same way.
  3. The file is installed, and the directory is in @INC, but there's a permission problem (you can't read the file or search the directory). It's more likely this would've produced a permission error than a "Can't locate", but it is possible. Carefully check permissions on all directories and the library file: make sure files are readable ("r" bit in permissions) and directories are searchable and readable ("x" and "r" bits).

HTH


In reply to Re: NT to Unix: HTTP::COMMON:: REQUEST issues by VSarkiss
in thread NT to Unix: HTTP::COMMON:: REQUEST issues by jcnuss

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.