in reply to Re^2: Changing Module Tree
in thread Changing Module Tree
Save the state of the %INC before the loop, and restore it at the beginning of each iteration.
Something as simple as this might work, assuming %INC isn't a tied hash:
Or alternatively:%INC = %old_INC;
for (keys %INC) { delete $INC{$_} if ! $old_INC{$_}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Changing Module Tree
by lackita (Sexton) on Apr 06, 2011 at 14:21 UTC | |
by Anonymous Monk on Apr 06, 2011 at 14:44 UTC | |
by wind (Priest) on Apr 06, 2011 at 22:50 UTC |