#!perl use strict; use warnings; use IPC::Open2; my $pid = open2(\*OUT, \*IN, '| findstr hello'); my $sometext = <; print join " ", @found;