in reply to Problem with ``use if COND, Some::Module'' on Linux
Kludge, alternate, but seems that Ubuntu may ("MAY!") prefer this syntax, which works on both MSWin7 (64) and Ubuntu 14.04 and produces the expected output:
# 1159936 revising stevieb's OP use if ( $^O !~ /MSWin/ ), 'Proc::Daemon'; { print "$INC{'Proc/Daemon.pm'}\n"; } use if ($^O =~ /MSWin/), 'Win32::Daemon'; { print "$INC{'Win32/Daemon.pm'}\n"; } exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with ``use if COND, Some::Module'' on Linux
by 1nickt (Canon) on Apr 08, 2016 at 18:02 UTC | |
|
Re^2: Problem with ``use if COND, Some::Module'' on Linux
by stevieb (Canon) on Apr 08, 2016 at 18:04 UTC | |
by 1nickt (Canon) on Apr 08, 2016 at 18:09 UTC |