Next File Locking 3

Typical Use of File Locking

        open DATAFILE, "+< $datafile" or die ...;
        flock DATAFILE, LOCK_EX;
        read and modify the data file here...
        flock DATAFILE, LOCK_UN;


Next Copyright © 2003 M. J. Dominus