anaconda_wly has asked for the wisdom of the Perl Monks concerning the following question:
I use code below directing output to $output, and I can't see screen display any more. How can I restore from it to a normal state which will print to the screen? I tried close STDOUT but no effect.
close STDOUT;//no effectclose STDOUT; my $output = ""; open(STDOUT, ">", \$output) or die "Can't open STDOUT: $!"; print "test \n";
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to restore from redirecting STDOUT to variable?
by choroba (Cardinal) on Jan 17, 2013 at 02:45 UTC | |
by anaconda_wly (Scribe) on Jan 17, 2013 at 03:34 UTC | |
by Athanasius (Archbishop) on Jan 17, 2013 at 04:14 UTC | |
by mbethke (Hermit) on Jan 17, 2013 at 04:30 UTC | |
by anaconda_wly (Scribe) on Jan 17, 2013 at 06:01 UTC | |
Re: How to restore from redirecting STDOUT to variable?
by Anonymous Monk on Jan 17, 2013 at 03:07 UTC |
Back to
Seekers of Perl Wisdom