ralijani has asked for the wisdom of the Perl Monks concerning the following question:
I have this loop:
while(<>){ ..... ..... if ($hour==0){ $var=0;} # it does not happend untill we have input from keyboard ..... ..... }
it waits untill keyboard in, and "if statment" wont do his job at the specfied time.
now i want a loop that if i have keyboard in do loop 1 and if we dont have input from keyboard do loop 2
how can i do it
Edited by davido to touch up formatting to match original author intent. Please use html formatting tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: input problem
by edan (Curate) on Dec 19, 2004 at 09:21 UTC | |
by BUU (Prior) on Dec 19, 2004 at 14:34 UTC | |
|
Re: input problem
by ysth (Canon) on Dec 19, 2004 at 08:23 UTC |