http://qs321.pair.com?node_id=257059


in reply to When is a logical or not logical

I'm going to work under the assumption that you have a copy/paste error in the code you posted, but...
open (LOGFILE, "$logfile) || die "Can't open $logfile: $!";
you desperately need a " to finish off the logfile name in the open statement...