Unsurprisingly, there is "if": https://github.com/FROGGS/p6-if Install it with zef install if
And then... use if; # activate the :if adverb on use statements use My::Linux::Backend:if($*KERNEL.name eq 'linux');use My::Fallback::Backend:if($*KERNEL.name ne 'linux'); El dom., 7 jun. 2020 a las 9:29, ToddAndMargo via perl6-users (< perl6-us...@perl.org>) escribió: > Hi All, > > Is there a way to do an "if" on "use lib", so > I do not have to keep commenting these back and forth? > > # use lib 'C:/NtUtil', '.'; > use lib 'C:/NtUtil', '.', 'K:/NtUtil'; > > Many thanks, > -T > -- JJ