Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Close STDOUT/STDERR temporarily

by sundialsvc4 (Abbot)
on Sep 12, 2014 at 01:20 UTC ( [id://1100348]=note: print w/replies, xml ) Need Help??


in reply to Re: Close STDOUT/STDERR temporarily
in thread Close STDOUT/STDERR temporarily

Rolf, are you saying that the OP’s strategy would work?   I presume that you are referring to the paragraph in perldoc -f open which begins Here is a script that saves, redirects, and restores "STDOUT" and "STDERR" using various methods: but I do get pretty-lost pretty-fast when reading it.   Could you perhaps offer a couple of specific examples that do, specifically, what the OP has in mind to do?   Or, otherwise, elaborate on how you’d do it?

Replies are listed 'Best First'.
Re^3: Close STDOUT/STDERR temporarily
by LanX (Saint) on Sep 12, 2014 at 13:18 UTC
    There are plenty of specific and working examples in this thread!

    The confusion stems from demonstrating more than one way to do it within the same sample script (like 3 vs 2 argument open AND lexical filehandles vs bare words AND addressing filehandles as globrefs)

    I have to admit that Perldocs are overly confusing in this respect.

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found