Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by mhearse (Chaplain)
on Jan 01, 2013 at 17:58 UTC ( [id://1011171]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    while (1) {
        sleep 10;
    }
    
  2. or download this
    PID: 3868
    shell> ls -l /proc/3868/fd/
    lrwx------.  64 Jan  1 09:55 2 -> /dev/pts/0
    l-wx------.  64 Jan  1 09:55 1 -> /tmp/returntozork
    lrwx------.  64 Jan  1 09:55 0 -> /dev/pts/0
    

Log In?
Username:
Password:

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

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

    No recent polls found