Xilman has asked for the wisdom of the Perl Monks concerning the following question:
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.$old_stdout = STDOUT; open STDOUT '> /dev/null'; $results = sub_with_logorrhea(); close STDOUT; open STDOUT $old_stdout;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Divert STDOUT temporarily
by tybalt89 (Monsignor) on Apr 27, 2020 at 17:45 UTC | |
by jwkrahn (Abbot) on Apr 27, 2020 at 19:05 UTC | |
by Xilman (Hermit) on Apr 27, 2020 at 19:02 UTC | |
|
Re: Divert STDOUT temporarily
by davido (Cardinal) on Apr 27, 2020 at 19:15 UTC | |
|
Re: Divert STDOUT temporarily
by AnomalousMonk (Archbishop) on Apr 27, 2020 at 18:11 UTC | |
|
Re: Divert STDOUT temporarily
by haukex (Archbishop) on Apr 27, 2020 at 20:17 UTC | |
|
Re: Divert STDOUT temporarily
by roboticus (Chancellor) on Apr 27, 2020 at 17:53 UTC | |
by AnomalousMonk (Archbishop) on Apr 27, 2020 at 18:18 UTC | |
|
Re: Divert STDOUT temporarily
by bliako (Abbot) on Apr 27, 2020 at 22:57 UTC |