in reply to Re^3: Undefined Value as Symbol reference
in thread Undefined Value as Symbol reference

The output from that snippet of code produced the following in the terminal: LOGFILE: output.txt

  • Comment on Re^4: Undefined Value as Symbol reference

Replies are listed 'Best First'.
Re^5: Undefined Value as Symbol reference
by runrig (Abbot) on Mar 07, 2014 at 19:10 UTC
    How about changing:
    my $tee = new IO::Tee(\*STDOUT, new IO::File(">>$config::logfile"));
    to (update: fixed typo per reply):
    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: $! +";

      That worked better after I added a double quote to the first line. Thanks!