in reply to Filehandler Trouble

I'm not sure if 'LOG' is a perl expression I'm not aware of or something, but if not, shouldn't it be:
print $LOG "$time Completed West XLS Generation\n";
Update: Ignore the jester in the corner...

Replies are listed 'Best First'.
Re^2: Filehandler Trouble
by chromatic (Archbishop) on Dec 14, 2004 at 20:33 UTC

    Presumably it's the name of a global filehandle, as in:

    open LOG, '>', $filename or die "Can't open '$filename': $!\n";
      I found where the trouble is please see the below code.
      $workbook->close() or die "LOG->Error Closing File: $!";
      The code was changed to the below.
      $workbook->close() or die "Error Closing File: $!";
      Can you please explain what is wrong with the original syntax?

        The only difference between those two lines is the contents of a string. Because those differences have no interpolations, they should have no effect in a well-behaved Perl, except in the message printed on failure.

        Unless you wanted to change the message printed, there's no way I know of that this could possibly solve your problem. It must have been another change.