appleii has asked for the wisdom of the Perl Monks concerning the following question:
if ($^O eq 'MSWin32') { # eval { # use Win32::Process; require Win32::Process; import Win32::Process; my $obj; if (Win32::Process::Open($obj, Win32::Process::GetCurrentProce +ssID(), 0)) { $obj->SetPriorityClass(THREAD_PRIORITY_BELOW_NORMAL); } }; }
Hello, everyone. Sorry to my poor english. I was run the code above and I got a error message:
Bareword "THREAD_PRIORITY_BELOW_NORMAL" not allowed while "strict subs" in use at main2.pl line 466. Execution of main2.pl aborted due to compilation errors.
But "use Win32::Process" will be OK. what's wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: require Win32::Process, barewords "THREAD_PRIORITY_BELOW_NORMAL" not allowed?
by cdarke (Prior) on Sep 21, 2009 at 15:42 UTC | |
|
Re: require Win32::Process, barewords "THREAD_PRIORITY_BELOW_NORMAL" not allowed?
by ikegami (Patriarch) on Sep 21, 2009 at 15:21 UTC | |
|
Re: require Win32::Process, barewords "THREAD_PRIORITY_BELOW_NORMAL" not allowed?
by Anonymous Monk on Sep 21, 2009 at 15:23 UTC | |
by ikegami (Patriarch) on Sep 21, 2009 at 15:37 UTC | |
|
Re: require Win32::Process, barewords "THREAD_PRIORITY_BELOW_NORMAL" not allowed?
by appleii (Novice) on Sep 21, 2009 at 16:24 UTC |