in reply to Sockets and Perl App

'socket()' should be defined by "use Socket." FYI, on my Linux and OS/X systems your one-liner works properly as-written.