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

Re: check if a filehandle is STDOUT when using use strict;

by bart (Canon)
on Dec 31, 2012 at 11:22 UTC ( #1011043=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if(fileno($fh)==fileno(STDOUT)) {
       # ...
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-07-07 01:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?