NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
select modifies its arguments (Score:2)
The first 3 arguments to
so thatselectare value/return - on input you give a bitmask of the file descriptors you are interested in, on output only the bits corresponding "interesting" file descriptors are set. So it's likely that after the first call toselect, all the bits were zeroed, and so for subsequent calls the arguments you passed in say that you're not interested in any file descriptors, so you never call any of your action functions. The solution is something like$rbitsand$ebitsare never modified, with the action tests on$routand$eoutReply to This
Re: (Score:1)
Re: (Score:2)
Ah OK. So I was right when I had this hunch on hitting "Submit" that I'd missed something. :-)