Help for this page

Select Code to Download


  1. or download this
    # save STDOUT
        open(my $STDOUT_ORIG, ">&", \*STDOUT) or die;
    ...
        #     this is connected via pipe with CHILD_PROC
        open(STDOUT, ">&", \*TO_CHILD_PROC);
    
  2. or download this
    # in thread
    my $wh = $pipe->writer;
    $wh->autoflush(1);
    print $wh  "whatever \n"  ;