Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Mysterious Disapperance of file contents

by diotalevi (Canon)
on Aug 29, 2003 at 03:56 UTC ( #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 (Pope) 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
Node Status?
node history
Node Type: note [id://287582]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2020-05-31 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?