|Do you know where your variables are?
Divert STDOUT temporarilyby Xilman (Hermit)
|on Apr 27, 2020 at 17:32 UTC
Xilman has asked for the wisdom of the Perl Monks concerning the following question:
This must be a FAQ but I've yet to find the FQ. A function in a module which will remain nameless in order to protect the guilty spews out loads of stuff on STDOUT which I want to send to /dev/null. What I do not want to to do is forgo the ability to have a Perl script send useful stuff to STDOUT before and after the function call, so it would be nice if the function could be bracketed as follows:
but I'm buggered if I can find out how to do it properly. Clearly it is a matter of advancing senility, for which I apologize and beg your indulgence.