How to Install and Uninstall libex-monkeypatched-perl Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 17,2024

1. Install "libex-monkeypatched-perl" package

This is a short guide on how to install libex-monkeypatched-perl on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libex-monkeypatched-perl

2. Uninstall "libex-monkeypatched-perl" package

Please follow the instructions below to uninstall libex-monkeypatched-perl on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove libex-monkeypatched-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libex-monkeypatched-perl package on Ubuntu 21.10 (Impish Indri)

Package: libex-monkeypatched-perl
Architecture: all
Version: 0.03-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: 30
Depends: perl:any, libsub-name-perl
Filename: pool/universe/libe/libex-monkeypatched-perl/libex-monkeypatched-perl_0.03-1.1_all.deb
Size: 8260
MD5sum: d90f40a8bd3f23e6fbd3b74c4f4ce969
SHA1: b5cd363b43fce6d8fd2e636d87861d18eb8d7df2
SHA256: b674bc0d507737a1764ff32d2c5b870ce957fa754cb64f123923817b208ba3c3
SHA512: 866e4ef7db428f31348f5772fe3ae65a8691630b1620911da4086f2528d65cf11550acb85b4ae4ba3a6b1b76d2686abf653b2f953d7e202c56bd283028f9cd1b
Homepage: https://metacpan.org/release/ex-monkeypatched
Description-en: experimental API for safe monkey-patching
The term "monkey patching" describes injecting additional methods into
a class whose implementation you don't control. If done without care,
this is dangerous; the problematic case arises when:
* You add a method to a class;
* A newer version of the monkey-patched class adds another method of
the same name
* And uses that new method in some other part of its own
implementation.
.
ex::monkeypatched lets you do this sort of monkey-patching safely:
before it injects a method into the target class, it checks whether the
class already has a method of the same name. If it finds such a
method, it throws an exception (at compile-time with respect to the
code that does the injection).
.
See for
more details.
Description-md5: 39a55802e9c706f315d9dd585ce51c07