Branch: refs/heads/yves/dedupe_inc Home: https://github.com/Perl/perl5 Commit: 879f0ef173e71bc22b5548e547ccf7b893fa7893 https://github.com/Perl/perl5/commit/879f0ef173e71bc22b5548e547ccf7b893fa7893 Author: Yves Orton <demer...@gmail.com> Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths: M pod/perlfunc.pod M pp_ctl.c M t/op/inccode.t Log Message: ----------- pp_ctl.c - dedupe @INC entries, especially hooks. Allowing a hook to execute more than once opens up a bunch of failure modes that are difficult to debug and potentially fatal. Simply skipping anything seen twice makes all the pain go away. It also might save some time in terms of not checking the same dir twice, but that is a side benefit. Currently this breaks a test, but that test is kinda broken anyway and will be fixed in a follow up patch.