Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Recursively changing STDOUT

by Sidhekin (Priest)
on Sep 16, 2007 at 12:30 UTC ( #639246=note: print w/ replies, xml ) Need Help??

in reply to Recursively changing STDOUT

moritz gave you half the answer. The one thing remaining, is reopening STDOUT, STDERR with the $SAVEOUT, $SAVEERR. The three-argument open covers that:

open(STDOUT, '>&', $SAVEOUT) or die ... open(STDERR, '>&', $SAVEERR) or die ...

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!

Comment on Re: Recursively changing STDOUT
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://639246]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2015-11-25 09:21 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (672 votes), past polls