How To Install perl-MouseX-StrictConstructor on Fedora 36

In this tutorial we learn how to install perl-MouseX-StrictConstructor in Fedora 36. perl-MouseX-StrictConstructor is Make your object constructors blow up on unknown attributes

Introduction

In this tutorial we learn how to install perl-MouseX-StrictConstructor on Fedora 36.

What is perl-MouseX-StrictConstructor

Simply loading this module makes your constructors “strict”. If your constructor is called with an attribute argument that your class does not declare, then it dies. This is a great way to catch small typos.

We can use yum or dnf to install perl-MouseX-StrictConstructor on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-MouseX-StrictConstructor.

Install perl-MouseX-StrictConstructor on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-MouseX-StrictConstructor using dnf by running the following command:

sudo dnf -y install perl-MouseX-StrictConstructor

Install perl-MouseX-StrictConstructor on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-MouseX-StrictConstructor using yum by running the following command:

sudo yum -y install perl-MouseX-StrictConstructor

How To Uninstall perl-MouseX-StrictConstructor on Fedora 36

To uninstall only the perl-MouseX-StrictConstructor package we can use the following command:

sudo dnf remove perl-MouseX-StrictConstructor

perl-MouseX-StrictConstructor Package Contents on Fedora 36

/usr/share/doc/perl-MouseX-StrictConstructor
/usr/share/doc/perl-MouseX-StrictConstructor/Changes
/usr/share/doc/perl-MouseX-StrictConstructor/README
/usr/share/man/man3/MouseX::StrictConstructor.3pm.gz
/usr/share/perl5/vendor_perl/MouseX
/usr/share/perl5/vendor_perl/MouseX/StrictConstructor.pm

References

Summary

In this tutorial we learn how to install perl-MouseX-StrictConstructor on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).