![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: Can't close pipe to invalid processby ikegami (Patriarch) |
on Aug 31, 2015 at 18:00 UTC ( [id://1140557]=note: print w/replies, xml ) | Need Help?? |
That's completely wrong. 1. Closing one end of a pipe doesn't cause close on the other end to return an error.
2. Closing a pipe created by open(my $fh, '|-', ...) reads the process (calls wait). It's very appropriate to do this, whether the pipe is closed or not. Closing such a handle returns the same thing as system.
In Section
Seekers of Perl Wisdom
|
|