AnyEvent 7.13's Makefile.PL expected to stop working on Perl 5.26

Kent Fredric kentfredric at gmail.com
Mon Mar 6 13:30:58 CET 2017


Under 5.25.10 with -Ddefault_inc_excludes_dot ( which will become
default in 5.25.11 ), Makefile.PL exits as follows:

---
cannot execute constants.pl.PL:  at Makefile.PL line 25, <STDIN> line 1.
Configuring AnyEvent failed.
---

This is of course because the sweeping removal of "." from @INC
affects "do $file", because "do $file" also relies on @INC traversal,
and "." being in @INC makes it work.

A simple workaround is to replace usage of

> do "somefile.pl"

with

> do "./somefile.pl"


-- 
Kent

KENTNL - https://metacpan.org/author/KENTNL



More information about the anyevent mailing list