in reply to Re: Problem with ``use if COND, Some::Module'' on Linux
in thread Problem with ``use if COND, Some::Module'' on Linux
That doesn't fix the problem on my Ubuntu (or Darwin):
Code:$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty
Output: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;
Too few arguments to 'use if' (some code returning an empty list in li +st context?) at /home/vagrant/perl5/perlbrew/perls/perl-5.16.3/lib/5. +16.3/if.pm line 7.
|
|---|