in reply to Re: Close STDOUT/STDERR temporarily
in thread Close STDOUT/STDERR temporarily

Rolf, are you saying that the OP’s strategy would work?   I presume that you are referring to the paragraph in perldoc -f open which begins Here is a script that saves, redirects, and restores "STDOUT" and "STDERR" using various methods: but I do get pretty-lost pretty-fast when reading it.   Could you perhaps offer a couple of specific examples that do, specifically, what the OP has in mind to do?   Or, otherwise, elaborate on how you’d do it?

Replies are listed 'Best First'.
Re^3: Close STDOUT/STDERR temporarily
by LanX (Saint) on Sep 12, 2014 at 13:18 UTC
    There are plenty of specific and working examples in this thread!

    The confusion stems from demonstrating more than one way to do it within the same sample script (like 3 vs 2 argument open AND lexical filehandles vs bare words AND addressing filehandles as globrefs)

    I have to admit that Perldocs are overly confusing in this respect.

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)