in reply to Creating an outputfile and processing it at once
perl othercode.pl | tee othercode.out | perl thiscode.pl