if (! open(OUTPUT, "$myScript |")) { # handle error } #### $exitStatus = system($script);