Hi
From the Perl documentation:
use Config;
This reads and initialises the module Config, try
perldoc Config
from the command line for some more details
binmode(FILE);
Arranges for FILE to be read or written in ``binary'' mode on systems where the run-time libraries distinguish between binary and text files.
flock(FILE,OPERATION );
flock() is Perl's portable file locking interface, although it locks only entire files, not records.
OPERATION is one of LOCK_SH, LOCK_EX, or LOCK_UN, possibly combined with LOCK_NB. These constants are traditionally valued 1, 2, 8 and 4, but you can use the symbolic names if you import them from the Fcntl module, either individually, or as a group using the ':flock' tag. LOCK_SH requests a shared lock, LOCK_EX requests an exclusive lock, and LOCK_UN releases a previously requested lock. If LOCK_NB is bitwise-or'ed with LOCK_SH or LOCK_EX then flock will return immediately rather than blocking waiting for the lock (check the return status to see if you got it).
Mike
michael.j.lacey@ntlworld.com