in reply to How to see the processId of the process called by system command from perl

You can use a piped open to get the pid:

my $pid = open my $cmd, "-|", 'theCommand parms' or die $!;

On win32, you can use the return value from system1, ...:

my $pid = system 1, 'theCommand parms';

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.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."