in reply to Re^2: Perl - webserver
in thread Perl - webserver

I had a look at your code, but even when not being a networking-guru, I can see some problems: Don't misunderstand me, I am not saying your code is not an honest try at writing (the beginnings of) a webserver, but these things are quite complicated by nature and without a good game-plan you are likely to bump into some issues later on and will have to start all over from scratch.

As I am against re-inventing wheels, personally I would start with an existing design (see the links in my previous post) and adapt it as needed.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James