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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |