Makefile.PL by re-inserting the '.' ( which is the only
thing that works, due to Module::Install shenanigans ).
Tests by replacing "use" statements with equivalent "require"
statements.
Some of the existing code ( eg: use_ok ) was already spurious and not
very smart, because calling ->import while being outside of BEGIN { }
has limited usefullness.
But this was left with the semantically equivalent code that retains
the loading of the relative path.
There are strategies that would be "nicer" than what I've done,
but they all wind up with you wanting to rename "Debugger.pm" to
something else, because:
use lib "t/lib";
use Debugger;
Is going to give people a much different impression from either
use t::lib::Debugger
Or
BEGIN {
require "./t/lib/Debugger.pm";
t::lib::Debugger->import();
}
Perl 5.26 breaks the implication that:
Will load:
Respectively, due to '.' ceasing to be in @INC
This fixes:
Some of the existing code ( eg: use_ok ) was already spurious and not very smart, because calling ->import while being outside of BEGIN { } has limited usefullness.
But this was left with the semantically equivalent code that retains the loading of the relative path.
There are strategies that would be "nicer" than what I've done, but they all wind up with you wanting to rename "Debugger.pm" to something else, because:
Is going to give people a much different impression from either
Or
This closes https://github.com/PadreIDE/Debug-Client/issues/6