Install libsocket-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libsocket-perl
Description:
networking constants and support functions
Socket provides a variety of constants, structure manipulators and other functions related to socket-based networking. The values and functions provided are useful when used in conjunction with Perl core functions such as socket(), setsockopt() and bind(). It also provides several other support functions, mostly for dealing with conversions of network addresses between human-readable and native binary forms, and for hostname resolver operations.
Homepage: https://metacpan.org/release/Socket
Version: 2.027-1
Section: universe/perl