Some say we should use a lexical filehandle instead of a typeglob, like this:
open $fh, $filename;
But most Perl books, including The Llama Book, use a typeglob, like this:
open LOGFILE, $filename;
So what are the differences? Which one is considered a better practice?
Question&Answers:os