Re: Opening Files

2006-09-18 Thread rob johnson
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

Re: Opening Files

2006-09-18 Thread rob johnson
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

Re: Opening files

2006-09-18 Thread Deane . Rothenmaier
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

Re: Opening files

2006-09-18 Thread Barry Brevik
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

Re: Opening Files

2006-09-18 Thread Sisyphus
- 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 $

Opening Files

2006-09-18 Thread Kevin Wells
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

dbmopen not opening files.

2004-12-08 Thread Anuja Kalra , Gurgaon
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

RE: Opening files of gigabytes

2001-04-04 Thread Cornish, Merrill
}#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

Re: Opening files of gigabytes

2001-04-04 Thread Michael L. Semon
> 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) { >

Opening files of gigabytes

2001-04-04 Thread Kamphuys, ing. K.G.
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;

Re: Opening files of gigabytes

2001-03-27 Thread Lee Goddard
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

Re: Opening files of gigabytes

2001-03-27 Thread Jon Bjornstad
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 = )

RE: Opening files of gigabytes

2001-03-26 Thread Petr Smejkal
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

Opening files of gigabytes

2001-03-26 Thread Kamphuys, ing. K.G.
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;