Skip to Main Content
Sams Teach Yourself Perl in 21 Days, Second Edition
book

Sams Teach Yourself Perl in 21 Days, Second Edition

by Laura Lemay, Rafe Colburn
May 2002
Beginner content levelBeginner
704 pages
16h 37m
English
Sams
Content preview from Sams Teach Yourself Perl in 21 Days, Second Edition

Sockets

Unix was built from the ground up with networking in mind, and Perl shows its Unix roots by providing robust support for networking code. Perl includes a number of built-in functions for dealing with sockets (listed in Table 20.1), which behave similarly to their C counterparts. If you're familiar with socket-based programming, these functions should look familiar to you. You might also want to use the Socket module, which gives you access to the common structure definitions from C's socket.h.

Some caveats about the use of sockets in Perl, however. The first is that some of the Perl socket features are available only on Unix; on some Windows or Macintoshes you'll need to use Win32 or MacPerl equivalents, making your scripts much less ...

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

Sams Teach Yourself Perl in 24 Hours

Sams Teach Yourself Perl in 24 Hours

Clinton Pierce
Perl Debugged

Perl Debugged

Peter Scott, Ed Wright

Publisher Resources

ISBN: 0672320355Purchase book