Next File Locking 9

Trap #3: Shutting the Barn Door etc.

        open F, "> somefile" or die ...;
        flock F, LOCK_EX or die ...;
        # Now write F
        close F;

continued...


Next Copyright © 2003 M. J. Dominus