How to Install libscalar-does-perl in Ubuntu 18.04



Install libscalar-does-perl by entering the following commands in the terminal:

sudo apt update
sudo apt install libscalar-does-perl

Description:

like ref() but useful

Scalar::Does provides a "does()" built-in. . A check that "ref($thing) eq 'ARRAY'" doesn't allow you to accept an object that uses overloading to provide an array-like interface. . This package also includes IO::Detect, for detecting if a scalar is a filehandle (or something filehandle-like).

Homepage: https://metacpan.org/release/Scalar-Does

Version: 0.203-1

Section: universe/perl