Help for this page

Select Code to Download


  1. or download this
    my $tee = new IO::Tee(\*STDOUT,
              new IO::File(">>$config::logfile"));
    
  2. or download this
    my $fh = IO::File->new(">>$config::logfile") or die "Failed to open $c
    +onfig::logfile: $!";
    my $tee = IO::Tee->new(\*STDOUT, $fh) or die "Failed to create tee: $!
    +";