the code hangs indefinitely at sysread. i wish to put a 1/500th sec timeout around the sysread.. thanks for your help in advance..$buffer_high = 255; $buffer_low = 254; sub process_lcd { ... my $key = sysread (DisplayIO, $lcdValue, 1); return $lcdValue; } # end process_lcd # code then compares values for $lcdValue with $buffer_high and $buffe +r_low
In reply to exiting sysread if no input by perllearner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |