Is there any way to screen/read the current processes running in Windows to get their pid in Perl?
Yes. Win32::Process::Info will get you most the information you need to do that. The missing part is the command line (parameters) if you need those to distinguish between concurrent instances. Though you may be able to determine that by using the ->Subprocesses() method if you know the pid of the process that started the instance you are looking for.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] |