G'day james786,

Welcome to the monastery.

It sounds like you could have more than one version of Perl installed. It's /usr/bin/perl that can't find String.pm; do you have another /some/path/to/perl on your system?

Try running:

which perl

from the command-line. Does that show /usr/bin/perl or something else?

How did you install String? There's normally some messages indicating where a module's files are being installed to. Do you have a log or history of that? Try using find to locate the path to String.pm.

Try running:

/usr/bin/perl -e 'use String; print "$String::VERSION\n";'

from the command-line. Do you get the same messages? Is the output showing the same version you installed? Do you get the same results with these:

perl -e 'use String; print "$String::VERSION\n";' /some/path/to/perl -e 'use String; print "$String::VERSION\n";'

How are you running your web application? Perhaps there's a configuration issue; have you checked this?

Did you undertake any troubleshooting yourself before posting here. If so, what were the results?

-- Ken


In reply to Re: Perl module installing at server by kcott
in thread Perl module installing at server by james786

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.