Install libparams-validate-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libparams-validate-perl
Perl module to validate parameters to Perl method/function calls
Params::Validate is a Perl module providing a flexible way to validate method and function call parameters. The validation can be as simple as checking for the presence of required parameters, or more complex, like validating object classes (via isa) or capabilities (via can) and checking parameter types. It also provides extensibility through customized validation callbacks. . The module has been designed to work equally well with positional or named parameters (via a hash or hash reference) and includes experimental support for attributes (see Attribute::Params::Validate for details).