How to Install and Uninstall libreadonly-xs-perl Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: September 20,2024

1. Install "libreadonly-xs-perl" package

Please follow the steps below to install libreadonly-xs-perl on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install libreadonly-xs-perl

2. Uninstall "libreadonly-xs-perl" package

Please follow the instructions below to uninstall libreadonly-xs-perl on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove libreadonly-xs-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libreadonly-xs-perl package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: libreadonly-xs-perl
Priority: optional
Section: universe/perl
Installed-Size: 34
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Architecture: amd64
Version: 1.05-1build2
Depends: perl (>= 5.22.1-1), perlapi-5.22.1, libc6 (>= 2.2.5)
Recommends: libreadonly-perl
Filename: pool/universe/libr/libreadonly-xs-perl/libreadonly-xs-perl_1.05-1build2_amd64.deb
Size: 9176
MD5sum: f844ca372f05a158f90fd993dca30396
SHA1: 15d14b399435801bbcb25c975b32aa9c8c5ac943
SHA256: 60eb9868a7a9bd04e479a7bca6df774348dda625cedacbc54a543485e069b5a2
Description-en: faster Readonly implementation
The Readonly module (q.v.) is an effective way to create non-modifiable
variables. However, it's relatively slow.
.
The reason it's slow is that is implements the read-only-ness of variables via
tied objects. This mechanism is inherently slow. Perl simply has to do a lot
of work under the hood to make tied variables work.
.
This module corrects the speed problem, at least with respect to scalar
variables. When Readonly::XS is installed, Readonly uses it to access the
internals of scalar variables. Instead of creating a scalar variable object
and tying it, Readonly simply flips the SvREADONLY bit in the scalar's FLAGS
structure.
Description-md5: a248387b6edf9b1e3294d8e2e3f43945
Homepage: https://metacpan.org/release/Readonly-XS/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu