Sun Aug 02 04:50:35 2015: Request 49619 was acted upon. Transaction: Correspondence added by DJIBEL Queue: Win32-Process Subject: Bareword "NORMAL_PRIORITY_CLASS" not allowed while "strict subs" Broken in: 0.14 Severity: (no value) Owner: Nobody Requestors: dji...@cpan.org Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49619 >
Le Sam 01 Aoû 2015 17:55:31, ZOFFIX a écrit : > > You need to import the constants you need, but I'm not sure how to > > get > > it to handle the import of constants properly. You can workaround > > the > > error by declaring your own constants: > > > > sub NORMAL_PRIORITY_CLASS { 0x00000020; } > > sub IDLE_PRIORITY_CLASS { 0x00000040; } > > sub HIGH_PRIORITY_CLASS { 0x00000080; } > > sub REALTIME_PRIORITY_CLASS { 0x00000100; } > > > > or change them to > > > > use constant NORMAL_PRIORITY_CLASS => 0x00000020; > > You can simply do: require Win32::Process; Win32::Process->import; > That's what 'use' does behind the scenes. > > I believe this ticket should be closed, to clear up the queue. Dear, Yes, we can close this ticket. Djibel