Removal of the current directory (".") from @INC in Perl 5.26.0
Posted: Fri Apr 12, 2024 1:21 pm
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
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