How to Install libguard-perl in Ubuntu 18.04



Install libguard-perl by entering the following commands in the terminal:

sudo apt update
sudo apt install libguard-perl

Description:

Perl module providing safe cleanup using guard objects

Guard is a Perl module implementing so-called "guards," which are things that "guard" a resource, ensuring that it is safely cleaned up when expected, even if exceptional conditions interrupt the normal control flow. This allows one to write code which executes an arbitrary code block or subroutine when either the related Guard Object is destroyed or when the current scope ends. In other languages, this sort of functionality is provided by the 'finally' keyword.

Homepage: https://metacpan.org/release/Guard

Version: 1.023-1build3

Section: universe/perl