Re: Corrupted Data

From: Kevin Pfeiffer (pfeiffer_at_iu-bremen.de)
Date: 10/30/03


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


Relevant Pages

  • Re: Vances _Blue World_ -- what Costners "Waterworld" should have been
    ... Ciszek) wrote: ... always had the impression this was one of Vance's minor works and ... besides which I wasn't keen on reading an sfnal take of Moby Dick, ... protagonist's solution of how to kill an intelligent giant squid with ...
    (rec.arts.sf.written)
  • Re: Vances _Blue World_ -- what Costners "Waterworld" should have been
    ... Ciszek) wrote: ... always had the impression this was one of Vance's minor works and ... besides which I wasn't keen on reading an sfnal take of Moby Dick, ... protagonist's solution of how to kill an intelligent giant squid with ...
    (rec.arts.sf.written)
  • Re: Review of Mueckenheims book.
    ... It's funny: Reading your proposal I get the impression that you didn't ... turns out that even if such strange things would exist, ...
    (sci.math)
  • Re: Vances _Blue World_ -- what Costners "Waterworld" should have been
    ... always had the impression this was one of Vance's minor works and ... besides which I wasn't keen on reading an sfnal take of Moby Dick, ... protagonist's solution of how to kill an intelligent giant squid with ...
    (rec.arts.sf.written)
  • Re: Upcoming OpenSSH vulnerability
    ... Subject: Upcoming OpenSSH vulnerability ... >>> Reading the rest of that mail, I get the impression it was some ... >> into the night ensuring everything is up and working. ...
    (FreeBSD-Security)