Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Undo a STDOUT redirect

by chester (Hermit)
on Oct 19, 2005 at 20:46 UTC ( #501417=note: print w/replies, xml ) Need Help??

in reply to Undo a STDOUT redirect

From perldoc open:

use warnings; use strict; open my $old, ">&", "STDOUT" or die $!; open STDOUT, ">", "test" or die $!; print "To file...\n"; close STDOUT or die $!; open STDOUT, ">&", $old or die $!; print "To console...\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://501417]
[LanX]: shmem I upvoted your reply ... for sympathy only
[LanX]: ;)
[Discipulus]: good night monks!
[shmem]: LanX: oh... now I have to figure out if this is good or bad news.
LanX bad day monks ?
[LanX]: hope you find sleep
[shmem]: LanX: which one?
[LanX]: the last
Discipulus yes a very bad day
[shmem]: grandola, vila morena

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-04-29 22:43 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (534 votes). Check out past polls.