P
Paul Lalli
Prior to the invention of lexical file handles, I'd always seen the
convention that filehandles should be given in all capital letters:
open FILE, 'file.txt' or die "...";
Now that we have lexical file handles, I'm wondering if there is a
consensus as towards this convention. Which of the following looks more
'right':
open $file, 'file.txt' or die "...";
or
open $FILE, 'file.txt' or die "...";
Obviously, I know that both work, but I'd like to get opinions on the
Best Practice way to do things.
Thanks for your input,
Paul Lalli
convention that filehandles should be given in all capital letters:
open FILE, 'file.txt' or die "...";
Now that we have lexical file handles, I'm wondering if there is a
consensus as towards this convention. Which of the following looks more
'right':
open $file, 'file.txt' or die "...";
or
open $FILE, 'file.txt' or die "...";
Obviously, I know that both work, but I'd like to get opinions on the
Best Practice way to do things.
Thanks for your input,
Paul Lalli