What is it that you're trying to do with the file? If you just want to read
the contents, using 'filehandles' and 'strict', here's one way to do it:
-----------------------snip-----------------------
#!/usr/bin/perl -w
use strict;
open (FILE, "some_file");
while (<FILE>) {
print;
}
close FILE;
-----------------------snip-----------------------
Ron
>From: Deborah Strickland <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Filehandle error using Strict
>Date: Tue, 04 Sep 2001 10:17:04 -0700
>
>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. I always declare everything but have never seen a
>filehandle declared before using it. 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);
>
>What's the correct way to get 'strict' to work when using file handles?
>
>Thnx, Deb
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]