You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider this:
<Zoffix> m: use lib 'lib'; use lib 'lib'; use lib 'lib'; say @*INC.grep(* eq 'file#lib').elems
<camelia> rakudo-moar : OUTPUT«3»
Each use lib includes an addition "lib" in @*INC, despite that directory already being there.
The case is the same for perl6 -Ilib foo-bar.pl where foo-bar.pl has "use lib 'lib';" in the code.
This causes unwanted duplicates that create bugs in code that iterates over @*INC. It is also conflictory with Perl 5's version of "use lib", whose one of the useful features is specifically that it does NOT cause duplicates in @INC even if the same directory is "use lib"ed multiple times.
Migrated from rt.perl.org#126718 (status was 'rejected')
Searchable as RT126718$
The text was updated successfully, but these errors were encountered: