in reply to Re^2: TIMTOWTDI Challenge: Open a file
in thread TIMTOWTDI Challenge: Open a file
According to perlport, flock is available on WinNT (and later). You should be able to check Config for d_flock.
> perl -MConfig -le "print $Config{d_flock}" define
No guarantees on how good that is for protecting against anything other than other Perl programs using flock. You might have to use Win32API::File for more direct control.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|