G'day natol44,

Whatever Perl you're using for your browser script is not the same as the one you used when installing Digest::MD5::File.

If you run these two, you'll see different @INC lists:

/path/to/browser/perl -V /path/to/root/perl -V

You should install Digest::MD5::File using the /path/to/browser/perl environment.

Consider whether you should be modifying the 'root' Perl at all. Doing so is generally a bad idea. I don't know what OS you're using; however, the 'root' Perl is typically part of the OS and often has specific patches such that it works in a way expected by the OS. Adding a new module may seem harmless enough, but it might have dependencies which may be automatically installed, overwriting the version expected by the OS. Take a look at Perlbrew as an alternative way of handling this.

The lib pragma failed due to incorrect usage: it does not take paths to modules as arguments - see the linked doco for details. Using this pragma is just a band-aid solution which I don't recommend: if you go down this path, you'll likely end up with multiple 'use lib ...' statements, in multiple scripts, and a potential maintenance nightmare. Install the module correctly once - do nothing else!

— Ken


In reply to Re: "Cannot find location" by kcott
in thread "Cannot find location" by natol44

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.