Help for this page

Select Code to Download


  1. or download this
    *print = *PRINT;
    *printf = *PRINTF;
    *new = *TIEHANDLE;
    
  2. or download this
    sub PRINT {
      my $self = shift;
      my $fh = *{$self->{fh}}}; # the file handle we tied in TIEHANDLE
      print $fh $self->{output}->(@_); # the sub we passed in in TIEHANDLE
    }