Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: possible bug in opening file handle to variable

by Robertn (Hermit)
on May 19, 2005 at 06:58 UTC ( [id://458536]=note: print w/replies, xml ) Need Help??


in reply to possible bug in opening file handle to variable

On this Configuration Windows 2000 w/sp4 This is perl, v5.8.4 built for MSWin32-x86-multi-thread I got these results C:\Temp>test1.pl (original code) Name "main::SAVED_STDERR" used only once: possible typo at C:\Temp\Tes +t1.pl line 7. testing stdout capture 1 testing stdout capture 2 C:\Temp>test2.pl (ikegami's fix) fileno(*STDOUT) = 1 fileno(*STDOUT) = 2 fileno(*STDOUT) = -1 fileno(*STDOUT) = -1 testing stdout capture 1 testing stderr capture testing stdout capture 2 C:\Temp>Test3.pl (ikegami's short version) testing stdout capture 1 testing stderr capture testing stdout capture 2
Your sole purpose in life maybe to serve as a warning to others.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://458536]
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-20 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found