Help for this page

Select Code to Download


  1. or download this
    $ perl -le " print fileno($_) for STDIN, STDOUT, STDERR "
    0
    1
    2
    
  2. or download this
    $ perl -le " print 0+-t $_  for STDIN, STDOUT, STDERR "
    1
    1
    1
    
  3. or download this
    $ perl -le " print 0+-t $_  for STDIN, STDOUT, STDERR "  < NUL
    0
    1
    1
    
  4. or download this
    $ perl -le " print 0+-t $_  for STDIN, STDOUT, STDERR "  < NUL  2> NUL
    0
    1
    0
    
  5. or download this
    $ perl -le " print 0+-t $_  for STDIN, STDOUT, STDERR " > out.txt
    
    ...
    1
    0
    1