Install libhash-withdefaults-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libhash-withdefaults-perl
Description:
class for hashes with key-casing requirements supporting defaults
Hash::WithDefaults implements hashes that support "defaults". That is, you may specify several more hashes in which the data will be looked up in case it is not found in the current hash.
Homepage: https://metacpan.org/release/Hash-WithDefaults
Version: 0.05-2
Section: universe/perl