- or download this
my $pid = open2(\*OUT, \*IN, '| findstr hello');
^
- or download this
my $pid;
eval {
...
if ($@ and $@ =~ /^open2:/) {
die "$@: $!\n";
}
- or download this
> perl 729630.pl
open2: exec of NotThere ... failed at 729630.pl line 8
: No such file or directory