In my opinion worth of your attention are these pages 'cause there you can find useful info about using Perl with net interaction (shellcodes, sockets)
Perl, Sockets and TCP/IP Networking. Intro to using perl with sockets
Network Programming with IO::SocketLINUX PERL NETWORKCODE
Server socket, socket bind
Bind to zero and accept.
Client socket, socket bind
Bind to service and connect.
Accept return, return and fork;
Fork and loop while children serve.
Client-server rule the net
T.C.P.