in reply to require Win32::Process, barewords "THREAD_PRIORITY_BELOW_NORMAL" not allowed?
The constants (similar to that you need) have to be defined for non-Windows platforms. They need no value, they are there to keep the compiler happy.use if ($^O eq "MSWin32"), 'Win32::Process'; use if ($^O eq "MSWin32"), 'Win32::SearchPath'; use if ($^O ne "MSWin32"), 'POSIX'; use if ($^O ne "MSWin32"), 'POSIX' => ':sys_wait_h'; # Hack to allow compilation under Unix # (NORMAL_PRIORITY_CLASS and INFINITE are Win32 only) use if ($^O ne "MSWin32"), 'constant' => 'NORMAL_PRIORITY_CLASS'; use if ($^O ne "MSWin32"), 'constant' => 'INFINITE';
|
|---|