Install libclass-accessor-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libclass-accessor-perl
Description:
Perl module that automatically generates accessors
Class::Accessor automagically generates accessor/mutator methods for your class. Most of the time, writing accessors is an exercise in cutting and pasting. If you make your module a subclass of Class::Accessor and declare your accessor fields with mk_accessors() then you will find yourself with a set of automatically generated accessors which can even be customized.
Homepage: https://metacpan.org/release/Class-Accessor
Version: 0.51-1
Section: perl