Install libpadwalker-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libpadwalker-perl
module to inspect and manipulate lexical variables
PadWalker is a module that allows you to inspect and even modify lexical variables in the current "lexical pad stack." Perl tracks which variables are accessible and visible in each lexical scope by keeping a separate set of variables for each scope. This module looks for a given variable by traversing that stack, which allows it to alter anything in the stack, even variables not normally accessible in the current scope. . In practise, this module is useful for checking anything defined in the full stack of subroutines that called your function, making it extremely useful for debugging. It is, however, not recommended for use in production code.