Perl: the Markov chain saw | |
PerlMonks |
Re: confused (and frustrated) about stdin/outby kwoff (Friar) |
on Dec 03, 2001 at 03:51 UTC ( [id://129014]=note: print w/replies, xml ) | Need Help?? |
open2() is from the module IPC::Open2. From `perldoc IPC::Open2`: This whole affair is quite dangerous, as you may block forever. It assumes it's going to talk to something like bc, both writing to it and reading from it. This is presumably safe because you "know" that commands like bc will read a line at a time and output a line at a time. Programs like sort that read their entire input stream first, however, are quite apt to cause deadlock.
In Section
Seekers of Perl Wisdom
|
|