Superfox il Volpone has asked for the wisdom of the Perl Monks concerning the following question:
Is there any way to do that?my $fh = *STDOUT; *STDOUT = undef; foo(); # foo cannot print into the stdout STDOUT = $fh; # restore STDOUT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Close STDOUT/STDERR temporarily
by LanX (Saint) on Sep 10, 2014 at 16:08 UTC | |
by kennethk (Abbot) on Sep 10, 2014 at 16:55 UTC | |
by Superfox il Volpone (Sexton) on Sep 11, 2014 at 12:57 UTC | |
by locked_user sundialsvc4 (Abbot) on Sep 12, 2014 at 01:20 UTC | |
by LanX (Saint) on Sep 12, 2014 at 13:18 UTC | |
|
Re: Close STDOUT/STDERR temporarily
by stylechief (Beadle) on Sep 11, 2014 at 16:03 UTC |