in reply to Re: STDERR Restore after redirect
in thread STDERR Restore after redirect

Thanks

Had already tried that with same result

Mental block on scoping

Have block of code that calls a sub which calls another sub which returns result(0 or 1) after allegedly closing the handle opened in that last sub. The result propagates back to the original block which then tries to print a response back to the client. That print command is what comes up against the closed handle. The close was after STDERR AND STDOUT were restored so I can't understand how the STDOUT was closed.

If the handles are closed, perhaps reopening them.

Replies are listed 'Best First'.
Re^3: STDERR Restore after redirect
by Anonymous Monk on Apr 27, 2018 at 13:02 UTC
    Anything anywhere in the SendMail package could have done it. I think you need to take a different approach to this.