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.
In reply to input problem by ralijani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |