[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] use strict



Eric Nelson wrote:
> 
> use strict;

> my($a);
> my(FILE_IN);

> open (FILE_IN, "data.txt");

> 
> I receive the error 
> 'Bareword "FILE_IN" not allowed while "strict subs" in use at line xxx
> 
> where xxx is either the 'my' definition or the 'open' if 'my' is
> commented out.  If 'strict' is not used at all, everything is fine.  Is
> 'strict' not available to use with filehandles?
> 

You don't need to predeclare filehandles; use strict should not complain
about them.  Is this your actual code?

Ronald

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch