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

[MacPerl] use strict



I want to use the package 'strict' in my perl programs help keep my
scripts cleaner but am having some trouble using the package with
filehandles.

#! usr/bin/perl

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?

Thanks,

Eric Nelson
Raytheon TI Systems

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