Try doing a $t->waitfor for the prompt that you respond to with the "O" (letter, not number) input(just before the print). This will clear out the input stream up to the start of the report.
Thanks!
I had to add the additional waitfor statement you suggested AND one more to further clear out the input stream.
Now for the next step ... extracting the information I need from the newly created file!