# New Ticket Created by Zoffix Znet # Please include the string: [perl #126718] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126718 >
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. Cheers, ZZ