Deborah Strickland wrote:
>
> Hi all, I've had this question for quite a while and can't find any
> reference to it in any of my many Perl books. I want to use the 'strict'
> command but whenever I do it always causes an error on any file handles
> I have used.
What errors are you getting?
> I always declare everything but have never seen a
> filehandle declared before using it.
You don't have to. "use strict;" has no effect on file handles and
directory handles.
> I then tried to declare the file
> handle with 'my $FH' but that causes an error for some reason. What's
> the correct way?
>
> This works:
> open(FN, $someFIle);
>
> This fails:
> use strict;
> open(FN, $someFile);
How does it fail? What error message do you get?
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]