in reply to Undefined Value as Symbol reference

My first guess is that $config::logfile is not what you think it is. My first suggestion is to make sure it is what you think it is.

My next suggestion is to check to make sure your file (and tee) open is successful.

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

    $config::logfile is in reference to the config.pm which is located in the config folder and within the config.pm is a variable called $logfile = "output.txt";

    package config; $logfile = "output.txt"; 1;

    Of course there are other variables in the config.pm that the user can specify to his/her applications. This works fine under WinXP not Win7 for some reason.

      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" ?

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