Sorry, there appears to be insufficient information.

The shared /xxx mount does not appear to be relevant: you're successfully loading the DMDCombo2 module, or you would get an error from the new() call before you reached the print. It is also not reaching the two lines from the new method that you show: if $self were undef at that point, you would get an error like "Can't bless non-reference value". So something is going wrong within that new() method, causing it to return an undef before it reaches the final two lines.

If you cannot show its code, nor a cut-down or sanitised version of it that exhibits the same error, I suggest the following steps: 1) copy the module to somewhere local on the linux box, modify the use lib statement appropriately, and satisfy yourself that the shared mountpoint is not the cause of the issue; 2) add diagnostics in the new() method in this copy to see which lines it is executing and understand where it is returning.

It will almost certainly be hitting an explicit return statement in that new() method, but diagnostics should easily make it clear where it is reaching; if the answer is not obvious at that point, you will at least have more information to share with us.


In reply to Re: Difference between old and new by hv
in thread Difference between old and new by zatlas1

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.