I curious about what OS your running on.

The reason being that I'm new to IO::Socket module
programing as well and ran into several problems while
looking at the recommeded sources.

It took going through several examples and combining what I
saw as "good" programing practices to come up with a
version that works on my win32 platform.

So once you understand the basics of IO::Socket (which your
on you way with the inital code you've written. Then
look at these two examples.

http://pleac.sourceforge.net/pleac_perl/sockets.html

http://www.perlfect.com/articles/select.shtml

Also, here was my problem, but it was pretty complex at this point. I'm handing a nonforking server that supports nonblocking IO.

http://www.perlmonks.com/index.pl?node_id=159578

Good Luck,
mslattery


In reply to Re: New at socket programming by mslattery
in thread New at socket programming by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.