Lyle Kopnicky wrote:
I tried the following code:
use Win32::PerfLib;
my %counter;
Win32::PerfLib::GetCounterNames('localhost', \%counter);
Try an empty string for the local machine:
Win32::PerfLib::GetCounterNames('', \%counter);
print "Number of counter hash keys: " . (scalar (keys counter)) . "\n";
This is the start of a program designed to get a list of processes. Any
idea why I am not getting the hash of counter names?
Your machines are likely called something different than localhost.
HTH,
Rhesa
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs