7.4.2 Sockets::IO and Sockets::IO::INET Packages

7.4.2  Sockets::IO and Sockets::IO::INET Packages

  

It is possible to write socket programs using the built-in functions that Perl provides. However, it is cumbersome to do so, since a lot of details need to be specified and dealt with. An easier way to write socket programs in Perl is to use a module called IO::Socket or IO::Socket::INET, if we are dealing with the Internet. These modules provide the functionality to write socket programs easily. In this section, we discuss how these modules work.