CHAPTER 22Networking

The basics of networking are not greatly different from input and output to any other kind of device or file. A filehandle that provides abstract access to a network socket shares many of the properties of a filehandle that provides access to a file or a serial port—not least that they can all be represented as filehandles. However, programs designed to work across a network have a new range of problems and challenges to solve beyond those encountered by local file system and device access.

In this chapter, we look at the basics of establishing network connections with sockets and how to create them using Perl's built-in networking functions. While we do not always need to go to the lowest level of network programming and ...

Get Pro Perl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.