Usually, Perl is right with its error message. You're not giving the filename to open and hence Perl complains that it doesn't know what to do:
open(LOGFILE)
You need to give open the filename to open, and I recommend using lexical filehandles if your version of Perl supports them (since 5.6.0):
open my $fh, "<", $LOGFILE or die "Couldn't open '$LOGFILE': $!";
In reply to Re: Use of uninitialized value in open
by Corion
in thread Use of uninitialized value in open
by pcouderc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |