in reply to Re: Need Help: Capture Print Outputs from a Function
in thread Need Help: Capture Print Outputs from a Function

Thank you again to everyone. It is working. I did ran into the problem mentioned by BrowserUK where another function using select(STDOUT) and then setting "$| = 1;" (no buffering). That gave me the problem of $buf coming back empty.

I fixed that by setting buffer on ($| = 0) just before the local "scope".

Again, thank you.

MNJ

  • Comment on Re^2: Need Help: Capture Print Outputs from a Function