Install libdb-file-lock-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libdb-file-lock-perl
Description:
wrapper adding locking for the DB_File module
When you need locking, simply use DB_File::Lock in place of DB_File and add an extra argument onto the tie command specifying if the file should be locked for reading or writing.
Homepage: https://metacpan.org/release/DB_File-Lock
Version: 0.05-4
Section: universe/perl