in reply to Get PID of a particular instance of Excel

Something like this maybe......
use Win32::Process::List; my $P = Win32::Process::List->new(); #constructor my @list = $P->GetProcesses(); #returns an array of hashes my %h = %{ $list[0] }; #get the hash with processname and pid foreach my $pr ( keys %h ) { print "Process $pr has PID " . $h{$pr} . "\n"; }
Right from Win32::Process::List

``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI