Ask a Question related to PERL Modules, Design and Development.
-
evesun@gmail.com #1
constant STILL_ALIVE
I intend to use Win32::getExitCode to check if a process is alive. The
5.8 doc says the STILL_ALIVE constant need to be explicitly exported,
but my Process.pm file in site/lib/Win32 has not shown such constant.
Does anyone know how to use that constant?
Thanks!
evesun@gmail.com Guest
-
Constant Freezing
Well, I've had this problem before. No, it does not crash when it's loading. It doesn't crash when loading fonts or anything like that. Before I had... -
unexpected constant #293 65
I've wasted a full days trying to install CF 7 on my local machine. I kept getting the message saying that location was full and I need to select a... -
undefined constant
Ok, echo "value is ".$_POST; values is Notice: Use of undefined constant merkid - assumed 'merkid' in .... echo "value is ".$_POST; value is... -
function name in a constant
Hi all! $func = "echo"; $func("xyz"); This works fine, we all know. but is there a possibility to get something like that working? define... -
The constant FALSE
Or is it a constant at all? "James Jiao" <jamesjiao@paradise.net.nz> wrote in message news:CZw3b.109$4a.20772@news02.tsnz.net... 0 -
John Bokma #2
Re: constant STILL_ALIVE
[email]evesun@gmail.com[/email] wrote:
use Win32::getExitCode 'STILL_ALIVE';> I intend to use Win32::getExitCode to check if a process is alive. The
> 5.8 doc says the STILL_ALIVE constant need to be explicitly exported,
> but my Process.pm file in site/lib/Win32 has not shown such constant.
> Does anyone know how to use that constant?
> Thanks!
maybe?
--
John Bokma Freelance software developer
&
Experienced Perl programmer: [url]http://castleamber.com/[/url]
John Bokma Guest
-
Sisyphus #3
Re: constant STILL_ALIVE
<evesun@gmail.com> wrote in message
news:1149620967.579144.193180@i40g2000cwc.googlegr oups.com...E:\pscrpt>type try.pl> I intend to use Win32::getExitCode to check if a process is alive. The
> 5.8 doc says the STILL_ALIVE constant need to be explicitly exported,
> but my Process.pm file in site/lib/Win32 has not shown such constant.
> Does anyone know how to use that constant?
> Thanks!
>
use warnings;
use Win32::Process (STILL_ACTIVE);
print STILL_ACTIVE, "\n";
E:\pscrpt>perl try.pl
259
E:\pscrpt>
It's a windows constant that gets picked up by the "compiled" part of
Win32::Process (ie the XS code) rather than by the perl code that you find
in Process.pm.
You need version 0.10 (or later) of Win32::Process to use it:
perl -MWin32::Process -e "print $Win32::Process::VERSION"
libwin32-0.26 contains Win32::Process-0.10. I think earlier libwin32
versions (0.24, certainly) contain Win32::Process-0.09.
The above script simply demonstrates that the constant exists and that it
has a numeric value of 259 (for me, at least).
Cheers,
Rob
Sisyphus Guest
-
evesun@gmail.com #4
Re: constant STILL_ALIVE
Thanks Rob!
I checked my version is 0.09, that is why I could not get it.
Thanks!
Eve
evesun@gmail.com Guest
-
evesun@gmail.com #5
Re: constant STILL_ALIVE
Thanks Rob!
I checked my version is 0.09, that is why I could not get it.
Thanks!
Eve
evesun@gmail.com Guest



Reply With Quote

