this codes just hangs when reading from OUT. I've tried using open2 before (with different programs) and never seems to get it to work. Am I doing something wrong?#!perl use strict; use warnings; use IPC::Open2; my $pid = open2(\*OUT, \*IN, '| findstr hello'); my $sometext = <<END; Hello, World! END print IN $sometext; close IN; my @found = <OUT>; print join " ", @found;
In reply to open2 on windows by mangetsu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |