How to Install libclass-contract-perl in Ubuntu 18.04



Install libclass-contract-perl by entering the following commands in the terminal:

sudo apt update
sudo apt install libclass-contract-perl

Description:

Perl Design-by-Contract OO module

The Class::Contract module implements strong encapsulation, static inheritance, and design-by-contract condition checking for object-oriented Perl. The module provides a declarative syntax for attribute, method, constructor, and destructor definitions at both the object and class level. Pre-conditions, post-conditions, and class invariants are also fully supported.

Homepage: https://metacpan.org/release/Class-Contract

Version: 1.14-8

Section: universe/perl