use strictand some of the my() statements for 5.000, and for both you'll have to load in version 1.2 of the Socket.pm module, which was/is/shall-be included in perl5.001o.
Most of these routines quietly but politely return
undef when they fail
instead of causing your program to die right then and there due to an
uncaught exception. (Actually, some of the new Socket conversion
functions croak() on bad arguments.) It is therefore essential
that you should check the return values fo these functions. Always begin
your socket programs this way for optimal success, and don't forget to add
-T taint checking flag to the pound-bang line for servers:
Because few vendors provide C libraries that are safely re-entrant, the prudent programmer will do little else within a handler beyond die() to raise an exception and longjmp(3) out.
Section 5 of the modules file is devoted to Networking, Device Control (modems) and Interprocess Communication, and contains numerous unbundled modules numerous networking modules, Chat and Expect operations, CGI programming, DCE, FTP, IPC, Mail and News, Proxy, Ptty, RPC, SNMP, Telnet, Threads, and ToolTalk--just to name a few.
Copyright 1996 Tom Christiansen.
All rights reserved.