How To Install liblexical-underscore-perl on Kali Linux
Introduction
In this tutorial we learn how to install liblexical-underscore-perl on Kali Linux.
What is liblexical-underscore-perl
liblexical-underscore-perl is:
Starting with Perl 5.10, it is possible to create a lexical version of the Perl default variable $. Certain Perl constructs like the “given” keyword automatically use a lexical $ rather than the global $_.
It is occasionallly useful for a sub to be able to access its caller’s $_ variable regardless of whether it was lexical or not. The “()” sub prototype is the official way to do so, however there are sometimes disadvantages to this; in particular it can only appear as the final required argument in a prototype, and there is no way of the sub differentiating between an explicitly passed argument and $.
lexical::underscore allows you to access your caller’s lexical $_ variable as easily as:
${lexical::underscore()}
There are three methods to install liblexical-underscore-perl on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install liblexical-underscore-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install liblexical-underscore-perl using apt-get by running the following command:
sudo apt-get -y install liblexical-underscore-perlInstall liblexical-underscore-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install liblexical-underscore-perl using apt by running the following command:
sudo apt -y install liblexical-underscore-perlInstall liblexical-underscore-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install liblexical-underscore-perl using aptitude by running the following command:
sudo aptitude -y install liblexical-underscore-perlHow To Uninstall liblexical-underscore-perl on Kali Linux
To uninstall only the liblexical-underscore-perl package we can use the following command:
sudo apt-get remove liblexical-underscore-perlUninstall liblexical-underscore-perl And Its Dependencies
To uninstall liblexical-underscore-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove liblexical-underscore-perlRemove liblexical-underscore-perl Configurations and Data
To remove liblexical-underscore-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge liblexical-underscore-perlRemove liblexical-underscore-perl configuration, data, and all of its dependencies
We can use the following command to remove liblexical-underscore-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblexical-underscore-perlDependencies
liblexical-underscore-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install liblexical-underscore-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.