Hi Monks,

First of all let me give you a little background of what we are doing and then I will explain the issue and the solution I need.

----Background----

Our team owns a test automation framework that enables users to develop and execute their tests.

Till now the whole system and the users are using perl 5.8.8 and hence we decided to migrate to perl 5.14.0.

----Issue----

Now, one of the user is getting an error when running his scripts using perl 5.14 which is working fine with perl5.8.8.

The error coming is 'Attempt to reload <module> aborted', where <module> is an internal module of our company.

I know the background of the error but we don't know where previous load of this module is failing since the test script has a long list of module reference.

----What I need----

To me the issue is not where the previous load is failing since it was failing earlier as well (with perl 5.8.8) but the test script was still going through.

I need to know, is there a way to tell perl5.14.0 not to treat this as an error (like perl5.8.8 does).

We can't put the code block where its failing under 'eval' as its doing 'use <module>' right at the beginning of the file.

Any help, solution, workaround for this issue will be highly appreciated.

Thanks in Advance,
Prashant

In reply to attempt to reload My_module.pm aborted by prashanttekriwal

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.