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

When I say 'make sure...' I mean something like:
print "LOGFILE: $config::logfile\n";
And then you can say, "yes, it's what it's supposed to be" (or not). I don't care what it's supposed to be in reference to...just what it actually is. And did I mention "check if your open's are successful" ?

Replies are listed 'Best First'.
Re^4: Undefined Value as Symbol reference
by PilotinControl (Pilgrim) on Mar 07, 2014 at 18:58 UTC

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

      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!