How To Install perl-Tie-ToObject on CentOS 7
Introduction
In this tutorial we learn how to install perl-Tie-ToObject
on CentOS 7.
What is perl-Tie-ToObject
While the perldoc/tie manpage allows tying to an arbitrary object, the class in question must support this in it’s implementation of ‘TIEHASH’, ‘TIEARRAY’ or whatever. This class provides a very tie constructor that simply returns the object it was given as it’s first argument. This way side effects of calling ‘$object->TIEHASH’ are avoided.
We can use yum
or dnf
to install perl-Tie-ToObject
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Tie-ToObject.
Install perl-Tie-ToObject on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Tie-ToObject
using yum
by running the following command:
Install perl-Tie-ToObject on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install perl-Tie-ToObject
using dnf
by running the following command:
How To Uninstall perl-Tie-ToObject on CentOS 7
To uninstall only the perl-Tie-ToObject
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Tie-ToObject
on CentOS 7 using yum
and dnf
.