in reply to How to make sysread timeout
Typically you would use select (if you follow the link, you want the 4-arg version of select) or IO::Select to handle the timeout.
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (181 votes). Check out past polls.