Re: Corrupted Data
From: Kevin Pfeiffer (pfeiffer_at_iu-bremen.de)
Date: 10/30/03
- Next message: Peter Scott: "Re: Corrupted Data"
- Previous message: Jimstone77_at_aol.com: "Re: Corrupted Data"
- In reply to: Jimstone77_at_aol.com: "Corrupted Data"
- Next in thread: Tore Aursand: "Re: Corrupted Data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Thu, 30 Oct 2003 17:05:20 +0100
In article <185.225b34a9.2cd27e26@aol.com>, Jimstone77@aol.com wrote:
> I'm having problems with corrupted data about every month or so. The
> problem
> seems to be that the New file sometimes writes only about half the old
> file. I was under the impression that flock would prevent the data from
> being corrupted. Can anyone tel me what I am doing wrong, and what I
> should be doing instead?
[...]
> open(NEW,$new) or die "Can't Open File: $!";
[...]
> print NEW $_;
> Is there something inherently wrong with doing it this way?
Printing to a file handle that was opened for reading?
-- Kevin Pfeiffer
- Next message: Peter Scott: "Re: Corrupted Data"
- Previous message: Jimstone77_at_aol.com: "Re: Corrupted Data"
- In reply to: Jimstone77_at_aol.com: "Corrupted Data"
- Next in thread: Tore Aursand: "Re: Corrupted Data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|