open FH, "/path/to/secondscript.cgi|"; # note the pipe! print join '', ; close FH;