Open p5pRT opened 6 years ago
Continuation of no responses https://www.nntp.perl.org/group/perl.perl5.porters/2018/07/msg251582.html
----------------------------------------------- C:\perl528\srcnew>perl -e"@INC = ('.\lib'); require Cwd;" b4 .\lib/Cwd.pm at .\lib/XSLoader.pm line 42. af .\lib at .\lib/XSLoader.pm line 44. ----------------------------------------------- ----------------------------------------------- C:\perl528\srcnew>perl -e"@INC = ('./lib'); require Cwd;" b4 lib/Cwd.pm at lib/XSLoader.pm line 42. af lib at lib/XSLoader.pm line 44. bad DY at lib/XSLoader.pm line 117. Compilation failed in require at -e line 1. ----------------------------------------------- Why did the "./" disappear from caller() but ".\" does not in how caller/require works?
*********new text below***********
This commit and bug ticket last touched the "./" removal code https://rt-archive.perl.org/perl5/Ticket/Display.html?id=66942
commit https://perl5.git.perl.org/perl.git/commit/e63be7465b2d564165a64209685cfd7026a2005b but the code really dates to commit https://github.com/Perl/perl5/commit/33b78306b8a6f9a33cf09697c8c3167d2111ea12#diff-1809087843b30c07d241e424dbbb3900R831 "perl 3.0 patch #24 patch #19\, continued" "Wed Aug 8 13:04:39 1990"\, change line " * patch19: . is now explicitly in @INC (and last)". The stripping of the "./" causes XSLoader to thunk into full DynaLoader unnecessarily.
Migrated from rt.perl.org#133396 (status was 'new')
Searchable as RT133396$