in reply to Re: IO::File->blocking
in thread IO::File->blocking

Ok, thanks, here's another question, I can't really experement since I'm forced (for now) to use a Win32-(W98) system with ActiveState. Can an IO-File object be flock'ed?



My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS | GMS

Replies are listed 'Best First'.
Re: Re: Re: IO::File->blocking
by graff (Chancellor) on Aug 11, 2002 at 12:23 UTC
    In case you haven't done a super-search for "flock", you can check this thread, which has relevant info in some of the later replies, as well as a link to a useful article from the Feb.2002 Perl Journal (Issue #23).

    In short, flock is not available on Windows 9x systems, but is available on NT, XP, 2000. However, the TPJ article contains some code that you can use to create semaphore files, which can serve to accomplish the same thing as flock.