Help for this page

Select Code to Download


  1. or download this
    sub read {
      my $self = shift;
      $self->{real_filehandle}->read(@_);
    }
    
  2. or download this
      my $out = new MyFileHandleWrapper;
      my $in = new MyFileHandleWrapper;
    ...
    
      # Fork, close $in and read from $out in the parent,
      # print to $in in the child