in reply to Re^2: Problem with ``use if COND, Some::Module'' on Linux
in thread Problem with ``use if COND, Some::Module'' on Linux
The following works...
my $is_win = $^O =~ /MSWin/ ? 1 : 0; use if $is_win, 'Win32::Daemon'; use if ! $is_win, 'Proc::Daemon';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem with ``use if COND, Some::Module'' on Linux
by Laurent_R (Canon) on Apr 08, 2016 at 17:51 UTC | |
by Anonymous Monk on Apr 08, 2016 at 19:30 UTC |