oops... left a quotation mark out. i should have wrote:
> The line
>
> open(FH,"<",$file)
>
> is the same as
>
> open(FH,"<$file")
>
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yah
Kevin,
there is nothing wrong with your code fragments as they are written.
Barry's comment is not accurate. The line
open(FH,"<",$file)
is the same as
open(FH,"<$file)
Your version (the first one) is technically more precise.
the problem could likely be that your path is not bei
eine L'Engle
"Barry Brevik" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
09/18/2006 11:57 AM
To:
cc:
Subject: Re: Opening files
Shouldn't it be:
open(FH,"<$file") or die "The file $fil
Shouldn't it be:
open(FH,"<$file") or die "The file $file could not be found";
Barry Brevik
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
- Original Message -
From: "Kevin Wells" <[EMAIL PROTECTED]>
To:
Sent: Monday, September 18, 2006 7:38 PM
Subject: Opening Files
> I am attempting to open a file using the following command:
>
> open(FH,"<",$file)
> or die "The file $
I am attempting to open a file using the following command: open(FH,"<",$file) or die "The file $file could not be found"; I get the file path using the following command: chomp($file=); When I execute the program after entering the file name from the keyboard I get an error messag
Title: dbmopen not opening files.
Hi List,
Recently we moved our code from one Windows machine to another.
There is a small snippet of code which was running fine, but now it is not running. I have searched but could find any help.
print "hello";
my $DBMfile=&quo
}#while lines remain
Now, you will only have one line in memory at a time regardless of how big
the file is.
Merrill
> -Original Message-
> From: Kamphuys, ing. K.G. [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 1:39 AM
> To: '[EMAIL PRO
> Hi all,
>
> I have a question regarding opening very large webserver logfiles. They
are
> about a gigabyte each and I have seven of them so I run out of memory.
>
> This is what I do now:
>
> for $file (@logfiles) {
> open (FILE, "$file");
> @text = ;
> close FILE;
> while ($#text > -1) {
>
Hi all,
I have a question regarding opening very large webserver logfiles. They are
about a gigabyte each and I have seven of them so I run out of memory.
This is what I do now:
for $file (@logfiles) {
open (FILE, "$file");
@text = ;
close FILE;
while ($#text > -1) {
$line = shift @text;
At 10:01 27/03/2001 +0200, Kamphuys, ing. K.G. wrote:
>Hi all,
>
>I have a question regarding opening very large webserver logfiles. They are
>about a gigabyte each and I have seven of them so I run out of memory.
Have you tried reading line-by-line?
>This is what I do now:
>
>for $file (@logfi
With the line:
@text = ;
You are reading the ENTIRE file into
an array. This is rarely necessary.
Instead, read it line by line
processing each line as it passes through
your program:
for $file (@logfiles) {
open (FILE, $file); # what if it fails???
while ($line = )
close FILE;
}
-- Petr Smejkal
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf
> Of Kamphuys, ing. K.G.
> Sent: Tuesday, March 27, 2001 10:02 AM
> To: '[EMAIL PROTECTED]'
> Subject: Opening files of gigabytes
>
>
> Hi
Hi all,
I have a question regarding opening very large webserver logfiles. They are
about a gigabyte each and I have seven of them so I run out of memory.
This is what I do now:
for $file (@logfiles) {
open (FILE, "$file");
@text = ;
close FILE;
while ($#text > -1) {
$line = shift @text;
14 matches
Mail list logo