Whilst playing with filehandles, I noted that if the unquoted-open-filehandles is in 
lower case it produces the following warnings => "Unquoted string "justaname" may 
clash with future reserved word at misc.pl line 3."

(Q1)     I just wonder what's the reasons for having warnings on lower-case filehandles
as uppercase-open-handles does not produce warnings.

(Q2)     However, if I put single or double quotes on the filehandles, everything 
seems fine. Am I therefore right to say that it is better to put quotes on 
filehandles, irregardless of uppercase-open-handles or lowercase-open-handles.

#!d:\sambar50\perl\perl.exe -w
use CGI::Carp (fatalsToBrowser); ## I always forgot the s in fatal, is there a way out.
open (justaname, 'anyfile.txt') || die "$!";
chomp (@file = <justaname>);
close ('justaname');
print @file,"\n";


Thanks






Reply via email to