On Thu, 31 Mar 2005 11:28:04 +0530, [EMAIL PROTECTED] wrote: > > Use strict is used to enforce declaration of variables before we use > them. > Here IN_FILE1 is file pointer variable which u are using and which is > not declared before , > That is the reason it is working fine when u have removed the use strict > construct. >
Not true. Save the following code in a file called "test.pl" and run it with "perl -w test.pl": ######## begin code use strict; open(IN_FILE1,"test.pl"); while(<IN_FILE1>) {print} ######## end code As you can see, this code runs without any warnings or errors. IN_FILE1 is a FILEHANDLE, not a "file pointer variable" (whatever the heck that is). More to the point, it is not a variable at all, and so is not affected by "use strict;". -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>