Removal of the current directory (".") from @INC in Perl 5.26.0

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1336
Joined: Sun Aug 17, 2008 5:05 am

Removal of the current directory (".") from @INC in Perl 5.26.0

Post by cah »

I ran into an issue and found starting version 5.26.0, the current directory (".") had been removed from @INC.

All files in require line assuming current directory being included in @INC will fail.

This line will fail because it assumes current directory is included in @INV:

require ".mysql/dbh"; --> FAILED

Adding "./" in front will work:

require "./.mysql/dbh"; --> WORKED
CAH, The Great
Post Reply