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"?
In reply to Re^2: Find a filename in a text file
by jwkrahn
in thread Find a filename in a text file
by jgatrell42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |