Skip to Content
Perl To Python Migration
book

Perl To Python Migration

by Martin C. Brown
November 2001
Beginner
320 pages
5h 53m
English
Pearson Business
Content preview from Perl To Python Migration

Chapter 12. COMMUNICATING OVER A NETWORK

Perl has always had strong networking communication support built in through socket(), bind(), and other functions. Since Perl 5 we've also been able to use the IO::Socket module for an easier way of creating a socket object which automatically connects to a remote machines or sets up a socket suitable for providing a service through which we can communicate with another machine. In all cases, what we end up with is a filehandle that we can read and write to using the usual read(), sysread() and print() functions.

For communicating with Internet services we can to use one of the various modules available on CPAN – Graham Barr's libnet module, for example, provides connectivity with FTP, SMTP, NNTP, and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl in a Nutshell

Perl in a Nutshell

Nathan Patwardhan, Ellen Siever, Stephen Spainhour
Perl by Example

Perl by Example

Ellie Quigley
Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe

Publisher Resources

ISBN: 0201734885Purchase book