BooK has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to have my program wait for user input.
<> is not good enough for me, since I don't want the user
to press Enter.
select seems a very good choice: with a well chosen timeout, I can even spare a few cycles for all the other processes... ;-)
Alas, I don't know how to use it properly. Can anybody help me? (and explain how all of this works?)
PS: No, I don't want to use a module for this: only stuff in perlfunc...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: select?
by chipmunk (Parson) on Dec 27, 2000 at 23:05 UTC | |
by BooK (Curate) on Dec 27, 2000 at 23:11 UTC | |
by extremely (Priest) on Dec 28, 2000 at 10:16 UTC | |
|
Re: select?
by Fastolfe (Vicar) on Dec 27, 2000 at 23:06 UTC | |
|
(tye)Re: select?
by tye (Sage) on Dec 27, 2000 at 23:20 UTC | |
by BooK (Curate) on Dec 27, 2000 at 23:29 UTC | |
by tye (Sage) on Dec 27, 2000 at 23:41 UTC |