in reply to New to perl: IO Select question :(
I think the most likely problem in your code is here:
I recommend to use the cpan module Net::Server to write your server. Unless you are learning socket level programming, why bother with low level stuff when you have a well written module that does pretty much everything you want?
Should it be my @rhSet = ...? Your @rshSet was never set in your script. It's a common error for new Perl programmers. You can catch these kinds of errors if you turn on the strict pragma with use strict; at the top of your code.my $rhSet = IO::Select->select($readSet, undef, undef, 0); foreach $rh(@rhSet) {
I recommend to use the cpan module Net::Server to write your server. Unless you are learning socket level programming, why bother with low level stuff when you have a well written module that does pretty much everything you want?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: New to perl: IO Select question :(
by pg (Canon) on Aug 21, 2005 at 00:38 UTC | |
Re^2: New to perl: IO Select question :(
by CompleteMoron (Initiate) on Aug 21, 2005 at 00:10 UTC | |
by Roger (Parson) on Aug 21, 2005 at 00:16 UTC | |
by CompleteMoron (Initiate) on Aug 21, 2005 at 00:20 UTC | |
by Roger (Parson) on Aug 21, 2005 at 00:34 UTC |
In Section
Seekers of Perl Wisdom