The following works...
my $is_win = $^O =~ /MSWin/ ? 1 : 0; use if $is_win, 'Win32::Daemon'; use if ! $is_win, 'Proc::Daemon';
In reply to Re^3: Problem with ``use if COND, Some::Module'' on Linux
by stevieb
in thread Problem with ``use if COND, Some::Module'' on Linux
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |