in reply to Redirecting STDOUT

I am not sure if this will help you, but you can find several (mine and some others) takes on capturing STDOUT at STDOUT::Capture - manipulate STDOUT.
You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.