See perldoc -f flock, but specifically, no you do not need the 'use'
statement with the way you are calling flock, that is with the '2'
instead of using one of the "symbolic" names that Fcntl:flock provides,
from the aforementioned perldoc:
"OPERATION is one of LOCK_SH, LOCK_EX, or LOCK_UN, pos
Hi all,
Do I always need
use Fcntl qw(:flock);
if I want to use
flock(FILEHANDLE, 2)
in my scripts ? I'm asking because some scripts I found on the web do and
some other don't, although they all use flock.
Is there also a nice way to omit the "flock() unimplemented on this
platform"