Deborah Strickland wrote:
> 
> Hi,
> I can't find the answer to this in any of my many Perl books so I'm
> asking you. I want to do 'use strict' but when I also use it with a file
> handle I get an error. How can I declare a file handle variable such
> that 'use strict' won't generate an error?
> 
> This fails.
> use strict;
> open (FN, $someFile);
> 
> This works:
> open(FN, $someFile);
> 
> In both cases, FN is not defined. When I try to define it with 'my $FN'
> I still get an error with strict. What's the proper way to define this?

This should pass. Even with use strict, you don't need to declare a file
handle.
Please tell us, what's the content of $someFile (and when you do, show
us the rest of code, too) !
Is it really something like '<my_file.txt'.

Greetings,
Andrea

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to