[LA.pm] Socket question

Kevin Scaldeferri kevin+lapm at scaldeferri.com
Sat Jan 21 09:31:44 PST 2006


On Jan 21, 2006, at 5:29 AM, elite elite wrote:

>
>
> What the differnt with use socket and IO::Socket?
>

Well, they have completely different interfaces, which you can compare 
using

perldoc socket

perldoc IO::Socket


socket is pretty much identical to the Unix C socket API, so if you're 
familiar with that, you might prefer it.  OTOH, IO::Socket behaves in a 
more "perl-ish" manner, and lets you use sockets much like normal 
filehandles, so if your background is mostly Perl, you might be more 
comfortable with that.

-kevin



More information about the Losangeles-pm mailing list