Sary:

If you just want a web crawler, I'd suggest you start with LWP or WWW::Mechanize so you can avoid the socket details. But if you want to attack your problem from the socket level to learn, then I'd suggest you get a good reference on socket programming to learn a bit more about the subject. Writing code for something you don't understand can be frustrating. While I'm certain that the University of Google can get you started, I recommend the Stevens book on UNIX network programming, check out the sample chapter referenced here. Even though it's for UNIX, most everything translates nicely to Windows as well.

The same author has several other books on networking that may be interesting to you. (Note: I have no relation with the author, save having purchased, read and enjoyed the book I recommended.)

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Update: Repaired second CPAN link.


In reply to Re: some SOCKET action by roboticus
in thread some SOCKET action by Sary

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.