G'day prashanttekriwal,

This seems like a very strange scenario to me. Have you provided all the details? If <module> is failing to compile, then the obvious solution would be to fix it.

Until it's been fixed, you presumably won't be able to use any of the features provided by this module. Given that, surely just commenting out the use statement would provide an interim solution.

# use <module>; # FIX PENDING!

Another alternative might be to use the if pragma. Here's an example usage:

$ NOT_A_MODULE_FIXED=0 perl -Mstrict -Mwarnings -e ' use Data::Dumper; use if $ENV{NOT_A_MODULE_FIXED} => "Not::A::Module"; print Dumper {test => 1}; ' $VAR1 = { 'test' => 1 };

[The use of Data::Dumper is just an example — your "long list of modules" would go here.]

You might gain some additional information by searching for "Attempt to reload %s aborted." in perldiag.

-- Ken


In reply to Re: attempt to reload My_module.pm aborted by kcott
in thread 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.