Hi, Thanks to this thread I found out why my script was failing with a similar error. All was fine with the root and user account, but failed when I sudo -u myser in root crontab. The @INC included (last, well hidden) the '.' which was actually... /root of course. So just a cd in the launching shell script and voila, but it took me too much effort and wasted time over this (stupid) new perl behaviour. I do not give a damn if @INC (or PATH, or LD_LIBRARY_PATH or WHATEVER PATH) includes a sometimes non-readable directory. My special thanks for the wasted time (and VERY unhappy clients of mine) to all the morons who coded this new perl behavior.

:)

Why did you make an upgrade without testing first?


In reply to Re^2: perl lost its modules! by Anonymous Monk
in thread perl lost its modules! by seandarcy

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.