what error is the open giving?
> open (LOGFILE, ">>junk.log") ;


open (LOGFILE, ">>junk.log")
or die "Couldn't open junk.log for appending : $!";

Also, it may be that somewhere LOGFILE is defined as a constant, and so
the bare filehandle LOGFILE is being interpreted as LOGFILE()

Rather use lexical file handles.

Clint