From the documentation to which I linked,
import them from the Fcntl module, either individually, or as a group using the ':flock' tag.
Add
use Fcntl qw( :flock );
as in the example
In reply to Re^3: file lock error
by ikegami
in thread file lock error
by dbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |