in reply to Re^3: Problem with ``use if COND, Some::Module'' on Linux
in thread Problem with ``use if COND, Some::Module'' on Linux

Do you really need a ternary operator here?

I would think that:

my $is_win = $^O =~ /MSWin/;
works the same way, doesn't it?

Replies are listed 'Best First'.
Re^5: Problem with ``use if COND, Some::Module'' on Linux
by Anonymous Monk on Apr 08, 2016 at 19:30 UTC
    neither version works, my $is_win is undef when "use if" is testing it at compile time