in reply to Re: Find a filename in a text file
in thread Find a filename in a text file

I got this right out of Perl for System Administration: Chapter 9: Log Files:
open(LOG, "$LogFilename") or die "Unable to open logfile:$!\n";

The example from that web page uses open(LOG,"logfile") which is a string literal so the quotes are required. Your example uses a scalar variable so the quotes are not required or desirable, see: What's wrong with always quoting "$vars"?