in reply to Wrong + Right = Even Worse
You can also put a coderref-hook in front of @INC to catch and redirect all do and require.
You can apply the same technique for a life monitoring of the dependencies by logging the caller. This might help you migrate the projects.
Not sure about CPAN modules doing this, see Re: How to use @INC coderef hooks (perldoc wrong) and linked threads for demos.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wrong + Right = Even Worse (@INC sub)
by tye (Sage) on Apr 04, 2014 at 15:52 UTC | |
by LanX (Saint) on Apr 04, 2014 at 16:08 UTC |