if (! open(OUTPUT, "$myScript |")) { # handle error }