Hello,
I just learned that open3's popen3 method supports the use of blocks.
Is it possible to add this (or something better) to the end of the current
open3 source documentation?
-----
#
# popen3 can also take a block which will receive stdin, stdout and stderr
# as parameters. This ensures stdin, stdout and stderr are closed once
# the block exits.
#
# Such as
# Open3.popen3('nroff -man') { |stdin, stdout, stderr| ... }
-----
Thanks,
Zev Blut
|