How to Install and Uninstall libmoosex-setonce-perl Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: November 25,2024

1. Install "libmoosex-setonce-perl" package

This is a short guide on how to install libmoosex-setonce-perl on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install libmoosex-setonce-perl

2. Uninstall "libmoosex-setonce-perl" package

Learn how to uninstall libmoosex-setonce-perl on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove libmoosex-setonce-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libmoosex-setonce-perl package on Ubuntu 21.04 (Hirsute Hippo)

Package: libmoosex-setonce-perl
Architecture: all
Version: 0.200002-1.1
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 18
Depends: perl:any, libmoose-perl, libtry-tiny-perl
Enhances: libmoose-perl
Filename: pool/universe/libm/libmoosex-setonce-perl/libmoosex-setonce-perl_0.200002-1.1_all.deb
Size: 5968
MD5sum: 222671c10e23951ee240721d10db71f5
SHA1: 00d5b17ee66afd7cc8a69a46c11054f8c1c4b70a
SHA256: 6e1d7af60aec1bf5a3702c709dca378a1b62953ddd6b5aeb0855977f4999269d
SHA512: b84cf8420178c689100920621efd8a496fee24620a89cf35c41348bbc4a738398ddc6acaf83674c58ba08130afbacea73031c8a39a03df09e098b18c4cc2c0a9
Homepage: https://metacpan.org/release/MooseX-SetOnce/
Description-en: module providing write-once, read-many attributes for Moose
MooseX::SetOnce provides the SetOnce attribute which lets your class have
attributes that are not lazy and not set, but that cannot be altered once
set.
.
The logic is very simple: if you try to alter the value of an attribute with
the SetOnce trait, either by accessor or writer, and the attribute has a
value, it will throw an exception.
.
If the attribute has a clearer, you may clear the attribute and set it again.
Description-md5: d9f5fcf353a7d29f4d1de2c6b615893d