note: this pid is actually the pid of the subshell. (updated)
$pid = open( my $proc, "-|", "ls -l" ); print "pid $pid\n"; my @lines = <$proc>; print @lines;
In reply to Re: How to get child pid from backtics
by fglock
in thread How to get child pid from backtics
by Hena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |