in reply to Re^3: how to log a process
in thread how to log a process

splain
Global symbol "$logmsg" requires explicit package name at /oven_script/tst/dlt30day-oven1d-j2.pl line 21. (#1) (F) You've said "use strict vars", which indicates that all variab +les must either be lexically scoped (using "my"), declared beforehand +using "our", or explicitly qualified to say which package the global var +iable is in (using "::").

Replies are listed 'Best First'.
Re^5: how to log a process
by Marshall (Canon) on May 28, 2009 at 07:28 UTC
    Yep! Right.
    This an error before the other errors. The first "my $logmsg" is commented out. There is more than one problem in the code. Once poster gets to the: my $logmsg = $date/$dir/$file; it will be found that is a "division by zero error". I was just looking in web browser and not in my editor so didn't see the exact line.

    I highly advise the op to not reuse $logmsg both as a file name and as a message text name.