Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Redirect STDOUT to textfile?

by doug (Pilgrim)
on Dec 06, 2010 at 21:47 UTC ( [id://875692]=note: print w/replies, xml ) Need Help??


in reply to Redirect STDOUT to textfile?

File manipulation starts with the open() command, so start by reading the documentation

perldoc -f open

and then search down for the words

Here is a script that saves, redirects, and restores "STDOUT" and "STDERR" using various methods:

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found