- or download this
use strict ;
use warnings ;
...
__END__
Win32::Process::Info is required to get process by name at C:/Strawber
+ry/perl/site/lib/Win32/Process/Memory.pm line 35.
- or download this
Use of uninitialized value in lc at C:/Perl64/site/lib/Win32/Process/M
+emory.pm line 38.
- or download this
foreach ( Win32::Process::Info->new( '', 'NT' )->GetProcInfo )
+ {
if ( lc( $_->{Name} ) eq $pargs->{name} ) { ######## Line
+38
$pargs->{pid} = $_->{ProcessId};
- or download this
use strict ;
use warnings ;
...
print '*'x75, "\n";
}
- or download this
[...]
$VAR1 = {
...
'ReadOperationCount' => 77
};
**********************************************************************
+*****
- or download this
use strict ;
use warnings ;
...
};
**********************************************************************
+*****
- or download this
$pi = Win32::Process::Info->new ([machine], [variant], [hash])
This method instantiates a process information object, connected to th
+e given machine, and using the given variant.
...
WMI - Uses the Windows Management Implementation. Good on Win2K, ME, a
+nd possibly others, depending on their vintage and whether WMI has be
+en retrofitted.
The initial default variant comes from environment variable PERL_WIN32
+_PROCESS_INFO_VARIANT. If this is not found, it will be 'WMI,NT,PT',
+which means to try WMI first, NT if WMI fails, and PT as a last resor
+t. This can be changed using Win32::Process::Info->Set (variant => wh
+atever).
- or download this
use strict ;
use warnings ;
...
ok1
hi 3
.....(hangs here)
- or download this
# get process handle by command line name
if ( defined( $pargs->{name} ) ) {
...
return $sum;
}