in reply to Doing stuff while doing other stuff

You are blocking until you get input from the client. You want your reads to timeout. You'll need to use select() for that. IO::Select comes with Perl and provides an object oriented interface that hides some of the details from you.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: Doing stuff while doing other stuff

Replies are listed 'Best First'.
Re: Re: Doing stuff while doing other stuff
by rendler (Pilgrim) on Sep 21, 2002 at 01:57 UTC
    I have no idea how the heck how I'm meant to be using IO::Select from all ther docs and examples I've seen my head just hurts more and more as I try to understand it :( Is there a VERY basic tut/example out there?