Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Mysterious Disapperance of file contents

by diotalevi (Canon)
on Aug 29, 2003 at 03:56 UTC ( [id://287582]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Mysterious Disapperance of file contents
in thread Mysterious Disapperance of file contents

Keep in mind you can't use LOCK_UN safely because of buffering. Use close() for that.

  • Comment on Re: Re: Re: Mysterious Disapperance of file contents

Replies are listed 'Best First'.
Re: Re: Re: Re: Mysterious Disapperance of file contents
by BrowserUk (Patriarch) on Aug 29, 2003 at 04:15 UTC

    Is that still true--I asked in total ignorance--given this from perlfunc:flock?

    To avoid the possibility of miscoordination, Perl now flushes FILEHANDLE before locking or unlocking it.

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://287582]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found