Thank you for your replies, I will answer here to all!

1- I am using Centos-7 (64 bits) with Webmin and Virtualmin panels.

2- I added BEGIN { push @INC, '/root/perl5/lib/perl5';} and it did not change anything, the same message is returned saying, it seems that this "push" is not considered.

3- Haukex, you told me to use Digest::MD5 instead of Digest::MD5::File. I do not understand, as Digest::MD5 is properly installed and works fine, but it does not include the functions I am using. Only Digest::MD5::File includes. If I remove the "::File" line I get this error when running the script:

Can't locate object method "addpath" via package "Digest::MD5"

Script section:
my $md5 = Digest::MD5->new;
$md5->addpath($longfile);
my $digest = $md5->hexdigest;
my $digest = file_md5_hex($longfile);
End of Script section

4- You tell me to install "correctly" the module. So my 2 questions are 1- How to UNinstall it (from the bad location) and 2- How to install it correctly, using CPAN or yum?


As you probably noticed I am really not an expert ;)

Thank you!

In reply to Re: "Cannot find location" by natol44
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.