Help for this page

Select Code to Download


  1. or download this
    #Does not work
    open(my $fh, '>>', 'test.out');
    openTee(*STDOUT, *STDOUT, *$fh);
    
  2. or download this
    #Should be working
    open(my $fh, '>>', 'test.out');
    openTee(*STDOUT, *STDOUT, $fh);
    #asterisks ONLY before STDOUT, NOT $fh