in reply to How to get child pid from backtics
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get child pid from backtics
by Anonymous Monk on Dec 09, 2004 at 15:19 UTC |