if (open (GREP, "-|")) { print ; } else { exec ("grep", "-r", $string, ".") || die "Error exec'ing command", "\n"; } close (GREP);