How do I do a non-blocking IPC read on Windows?
问题 I have a Perl script that uses an external tool (cleartool) to gather information about a list of files. I want to use IPC to avoid spawning a new process for each file: use IPC::Open2; my ($cin, $cout); my $child = open2($cout, $cin, 'cleartool'); Commands that return single-lines work well. e.g. print $cin "describe -short $file\n"; my $description = <$cout>; Commands that return multiple lines have me at a dead end for how to consume the entire response without getting hung up by a