El dom., 7 jun. 2020 a las 9:29, ToddAndMargo via perl6-users (<perl6-us...@perl.org <mailto: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

On 2020-06-07 00:41, JJ Merelo wrote:
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');

Hi JJ,

Thank you!

Would show me an example of how to use it
with "use lib"?

-T

Reply via email to