Help for this page

Select Code to Download


  1. or download this
    use IO::Tee;
    
        $tee = IO::Tee->new($handle1, $handle2);
        print $tee "foo", "bar";
    
  2. or download this
    $tee = IO::Tee->new(\*STDOUT, \*OUTFILE);
    print $tee "Your data here" if .....
    
  3. or download this
    use strict;
    use warnings;
    ...
    print $_ "Test string.\n" for \*STDOUT, $fh;
    
    close $fh;