in reply to Redirect Subroutine Output

I recommend one of the following. (All the code below are UNTESTED and may contain errors.)