Help for this page

Select Code to Download


  1. or download this
        -t  Filehandle is opened to a tty.
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    } else {
        say "Script '$iam' is receiving input from a pipe";
    }
    
  3. or download this
    Script 'script' called from a terminal with 3 arg(s):
       1.  arg1
       2.  arg2
       3.  arg3
    
  4. or download this
    Script 'script' is receiving input from a pipe
    
  5. or download this
        while (<STDIN>) {
            say "Got input:  $_";
        }