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

Use select to redirect STDOUT (Was Re: Opening and Closing STDOUT)

by hiseldl (Priest)
on Mar 05, 2003 at 14:23 UTC ( [id://240583]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(JUNK, ">junk.txt") or die;
    
    print "this is going to stdout\n";
    ...
    select STDOUT;
    
    print "this is again going to stdout\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found