in reply to File Handle questions
G'day demichi,
Declaring LOG_FH should, I think, fix both your posted problems.
You'll then find another problem with your $log_fh assignment. You need to assign a globref:
#my $log_fh = *LOG_FH; my $log_fh = \*LOG_FH;
To be honest, I don't know why you're even bothering with that globally-scoped package variable. Why not just:
my $log_fh; LOG_MSG_OPEN($log_fh,$logfile);
Recomendations:
Update: Expanded the "Names with all uppercase characters ..." point.
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File Handle questions
by demichi (Beadle) on Oct 23, 2016 at 15:30 UTC | |
by kcott (Archbishop) on Oct 27, 2016 at 13:20 UTC | |
|
Re^2: File Handle questions
by demichi (Beadle) on Oct 23, 2016 at 16:25 UTC | |
by hippo (Archbishop) on Oct 23, 2016 at 22:27 UTC | |
by RonW (Parson) on Oct 25, 2016 at 22:45 UTC |