in reply to Need Help: Capture STDOUT without Redirecting
"I could just print the variable $buf after its done too. However, some of data are very big and the sub that I'm trying to capture takes a long time to execute..."