in reply to Socket Server Speed
Hi !
There are some things that caught my eye immediately:
---- kurt
- why do you sleep after each line received ?
- you use the same substr command 5 times, it would be much more efficient to store the result of substr into a variable once and then use this variable
- why do you call autoflush after reading a line ? It is sufficient to call it once, as you do anyhow
---- kurt
In Section
Seekers of Perl Wisdom