Help for this page

Select Code to Download


  1. or download this
    open(FH,"<&STDIN") || die "Error with copying STDIN to FH : $!\n";
    
    ...
    }
    close(FH) || die "Error closing FH: $!\n";
    exit;
    
  2. or download this
    while ($inbuf=<STDIN>)
    {
    ...
        print $_;
    }
    exit;