Install libobject-event-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libobject-event-perl
Perl event callback interface
Object::Event is a Perl module that provides a consistent interface for registering and emitting events. You can register callbacks for events, trigger events and even stop the current event from running further callbacks.