Install libnet-bluetooth-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-bluetooth-perl
Perl interface to Bluetooth libraries
Net::Bluetooth works with the BlueZ libraries as well as with Microsoft Windows. It allows developers to manage Bluetooth features such as device and services discovery, RFCOMM connections and other Bluetooth functions.